Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/vim/mod.ts>extendnew

๐Ÿ“š Standard module for denops.vim
Go to Latest
function extendnew
import { extendnew } from "https://deno.land/x/denops_std@v3.6.0/function/vim/mod.ts";

Like |extend()| but instead of adding items to {expr1} a new List or Dictionary is created and returned. {expr1} remains unchanged. Items can still be changed by {expr2}, if you don't want that use |deepcopy()| first.

Parameters

denops: Denops
expr1: unknown
expr2: unknown
optional
expr3: unknown

Returns

Promise<unknown>