Skip to main content
Module

x/denops_std/function/mod.ts>and

📚 Standard module for denops.vim
Go to Latest
function and
import { and } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

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>