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@v6.3.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. The error is in the form "Expected range {lower} - {upper}, but got {actual}". When {msg} is present it is prefixed to that.

Parameters

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

Returns

Promise<number>