Search results
134 packages found
Random JavaScript value generator for testing or seed data.
A Node.js library offering functions to check variable types, including arrays, objects, strings, numbers, booleans, and undefined values.
Convert all the string variables into their actual data type using different parsers
Check whether a condition is true for any element of an array. The condition check is in the form of a callback.
Return the last element of an array where the callback returns true.
- return
- element
- array
- callback
- returns
- true
- arr
- iterate
- callbackelement
- index
- boolean
- satisfy
- condition
- current
- View more
Return the first element of an array where the callback returns true.
- return
- element
- array
- callback
- returns
- true
- arr
- iterate
- callbackelement
- index
- boolean
- satisfy
- condition
- predicate
- View more
Sanitize and validate data with the given set of rules.
Return the index of the first element of an array where the callback returns true. Returns -1 if none do.
- return
- index
- element
- array
- callback
- returns
- true
- -1
- arr
- iterate
- callbackelement
- boolean
- satisfy
- condition
- View more
A utility library for converting data types and working with arrays. Provides converters for boolean, number, and string values, along with array conversion functions and support for values with predefined options.
Reliable dynamic type checking
- type
- types
- typeof
- typecheck
- typechecking
- dynamyc
- runtime
- static
- check
- check types
- check-types
- flow
- flowtype
- typescript
- View more
Generate something random
Common types, type guards and type checkers.
This module is small but easy to use. The purpose of this module is to serve as a container for all my validator modules. That has thirteen validator all in one module, the validators is as follows: bigger, contains, equal, longer, mqtt topic, regex, smal
Functions that check if array starts with certain items, or ends with certain items
Manupilate strings of all types to get desired output
Creates a binary mask based on the differences of two arrays
A collection of utility functions for working with randomness.
- array
- boolean
- chance
- collection
- combination
- date
- exclusive
- float
- inclusive
- integer
- iterable
- luck
- mersenne twister
- number
- View more
Casts the given value to a flatten array, and removes falsey items (similar to lodash compact).
BooleanArray.
A JS module that returns random stuff,like strings,numbers etc