Search results

1162 packages found

A one-liner to get a nested prop using dot-notation with a optional default value as fallback

published 1.0.0 7 years ago
M
Q
P

Binary search -based indexOf for sorted arrays.

published 1.0.2 4 years ago
M
Q
P

Find the array index of where to add an element to keep it sorted.

published 3.0.2 4 years ago
M
Q
P

Binary search -based indexOf for sorted arrays.

published 1.0.2 4 years ago
M
Q
P

Find all indexes at which an array element exists, by binary search.

published 1.0.1 4 years ago
M
Q
P

Remove all duplicate elements in a sorted array, leaving only uniques.

published 1.0.1 4 years ago
M
Q
P

For a sorted array, add an element. Whichever comparator function was used to sort the array, can be passed. Also supports comparator-builder options. For reference, see: https://github.com/bemoje/bemoje-arr-sort-comparator

published 1.0.4 4 years ago
M
Q
P

Make all the properties of an object enumerable. Optionally deep, shallow by default.

published 0.2.0 9 years ago
M
Q
P

Return default value for object properties that does not exists i.e is undefined.

published 1.0.3 5 years ago
M
Q
P

Simple solution to this problem: "TypeError: Cannot set property 'x' of undefined"

published 1.0.0 9 years ago
M
Q
P

Sort an array considerably faster than the native Array.prototype.sort as a drop-in replacement. Fork of of the famous timsort module, but this module allows for passing comparator-builder options instead of a comparator function. In short, advanced compa

published 1.0.2 4 years ago
M
Q
P

Simply check if a property inside a nested object is available, otherwise assign a default value.

published 1.0.0 5 years ago
M
Q
P

Create a new object containing the same properties (through assignment) of another object along with an @@iterator method can make use of the default iteration behavior (such as for-of) that built-in iterables like Array or Map have.

published 0.2.1 8 years ago
M
Q
P

Array.map for Object. Map both an object’s keys and values. Defaults to cleanly augment prototype.

published 1.0.0 8 years ago
M
Q
P

Push that operates with Objects instead of arrays, used for joining objects including renaming duplicate keys (if the first parameter is true, default is false), by appending four underscores ( ____ ) and a number to the end of the key. Thereby making it

published 2.0.0 4 years ago
M
Q
P

JavaScript library to merge custom object with default values

published 0.1.1 8 years ago
M
Q
P

Wrap and validate optional values

published 1.0.0 5 years ago
M
Q
P

Validates option parameters against a default option

published 0.0.6 8 years ago
M
Q
P

Safely retrieve deeply nested values from an object.

published 0.2.1 4 years ago
M
Q
P

Skema provides a handy & composable way to validate / transform / purify the input data.

published 10.0.1 6 years ago
M
Q
P