Skip to content

Documentation / @ripl/core / createNumericIncludesMethod

Function: createNumericIncludesMethod() ​

createNumericIncludesMethod(domain): (value) => boolean

Defined in: packages/core/src/scales/_base/index.ts:110

Creates an includes predicate that tests whether a value falls within the numeric domain.

Parameters ​

ParameterType
domainnumber[]

Returns ​

(value): boolean

Parameters ​

ParameterType
valuenumber

Returns ​

boolean