Search results

311 packages found

ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.

published version 1.3.0, 6 months ago1374 dependents licensed under $MIT
165,638,141

Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.

published version 2.0.1, 7 years ago820 dependents licensed under $MIT
102,826,508

Returns true if a value exists, false if empty. Works with deeply nested values using object paths.

published version 2.0.2, 7 years ago856 dependents licensed under $MIT
101,303,822

Coalesce for JavaScript. Returns the first value that is not undefined or null.

published version 1.0.2, 8 years ago23 dependents licensed under $MIT
13,384,918

Checks if the given value is a window object.

published version 1.0.2, 9 years ago116 dependents licensed under $MIT
5,591,117

GraphQL Semantic Output Conversion Kit - converts a cutting edge SDL file that supports semantic nullability into a more traditional SDL file legacy tools can support.

published version 1.0.1, 2 months ago1 dependents licensed under $MIT
1,909,299

Ensure a path doesn't contain null bytes

published version 3.0.0, 4 years ago27 dependents licensed under $MIT
2,004,128

A library to have a generic typescript definition for object presence.

published version 1.2.2, 4 years ago54 dependents licensed under $MIT
1,259,449

Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)

published version 9.3.0, a year ago36 dependents licensed under $Artistic-2.0
902,307

Checks if the given value is null or undefined

published version 1.0.1, 9 years ago44 dependents licensed under $MIT
786,440

Returns true if the given is falsey (according to JavaScript) or matches a 'falsey' keyword.

published version 1.0.0, 7 years ago53 dependents licensed under $MIT
604,612

Simple function that return the first non null or undefined argument

published version 1.0.0, 10 years ago11 dependents licensed under $MIT
494,091

3x as fast as `is-whitespace` and `whitespace-regex` thanks to `is-string-blank`. This package is a simple function that accepts an argument and returns `true` if it is a string AND it is not blank. Supports Node and Browser environments.

published version 0.0.2, 6 years ago29 dependents licensed under $MIT
531,447

Return an empty module, 'nuff said

published version 0.0.2, 12 years ago13 dependents licensed under $MIT
101,738

Prebuilt null Provider for Terraform CDK (cdktf)

published version 10.0.2, a month ago16 dependents licensed under $MPL-2.0
75,413

Common error classes and utility functions

published version 1.2.0, 5 years ago142 dependents licensed under $MIT
23,912

returns a copy of an array or object with null/undefined members removed

published version 2.3.0, 2 years ago8 dependents licensed under $MIT
21,220

Test if a value is null.

published version 0.2.2, 10 months ago9 dependents licensed under $Apache-2.0
15,408

Validation utilities

published version 11.0.1, 8 months ago12 dependents licensed under $MIT
18,399

Ensures value is defined (i.e., neither undefined nor null).

published version 1.0.0, 6 years ago1 dependents licensed under $MIT
11,784