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

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

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

This asserts number and |Float| values. When {actual} is lower than {lower} or higher than {upper} an error message is added to |v:errors|. Also see |assert-return|. When {msg} is omitted an error in the form "Expected range {lower} - {upper}, but got {actual}" is produced.

Parameters

denops: Denops
lower: unknown
upper: unknown
actual: unknown
optional
msg: unknown

Returns

Promise<unknown>