Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ddc_vim/deps.ts>fn.and

Dark deno-powered completion framework for neovim/Vim
Latest
function fn.and
import { fn } from "https://deno.land/x/ddc_vim@v4.3.1/deps.ts";
const { and } = fn;

Bitwise AND on the two arguments. The arguments are converted to a number. A List, Dict or Float argument causes an error. Also see or() and xor(). Example:

:let flag = and(bits, 0x80)

Can also be used as a method:

:let flag = bits->and(0x80)

Parameters

denops: Denops
expr1: unknown
expr2: unknown

Returns

Promise<number>