Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.reverse

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.reverse
import { fn } from "https://deno.land/x/ddc_vim@v3.8.0/deps.ts";
const { reverse } = fn;

Reverse the order of items in {object} in-place. {object} can be a List or a Blob. Returns {object}. Returns zero if {object} is not a List or a Blob. If you want an object to remain unmodified make a copy first:

:let revlist = reverse(copy(mylist))

Can also be used as a method:

mylist->reverse()

Parameters

denops: Denops
object: unknown

Returns

Promise<unknown[]>