Skip to main content
Latest
function fn.invert
import { fn } from "https://deno.land/x/denops_lsputil@v0.9.4/deps.ts";
const { invert } = fn;

Bitwise invert. The argument is converted to a number. A List, Dict or Float argument causes an error. Example:

:let bits = invert(bits)

Can also be used as a method:

:let bits = bits->invert()

Parameters

denops: Denops
expr: unknown

Returns

Promise<number>