John Lamansky

2

v3.0.0
The Type Conversion Library. Numbers, Strings, Arrays, Maps, Objects, and Iterators.

isit

v1.1.0
Tests a value’s type against a string like 'positive integer' or 'non-empty map'.

3

v2.1.0
Performs a multi-level three-way comparison on numbers/strings and returns 1, 0, or -1.

kset

v2.0.0
Uses one or more keys to locate and set a value in a Map, Object, or other keyed collection. Supports nesting, loose key matching, and more.

new-object

v4.0.0
Creates an Object from a collection of key-value pairs or key-descriptor pairs.

eslint-config-lamansky

v2.0.0
Custom ESLint configuration. Extends Standard.

maybe-stringify

v1.0.0
Converts data to JSON if possible, or else returns a fallback value.

map-map

v3.1.0
Applies a callback to each key-value pair of a Map or Object.

modify-property

v1.0.0
For patching a property descriptor, including replacing getters/setters.

suppress

v1.0.0
Wraps around a function and suppresses its errors.

filter-map

v3.1.0
Returns a copy of a Map object containing only those entries which pass a test function.

cached-function

v1.0.0
Wraps a function and caches its return values.

get-prototype

v1.0.0
Validates and returns a function’s prototype.

extend-prototype

v1.1.0
Extends one class with methods from another.

class-chain

v1.0.0
Returns an object’s class and its ancestors.

has-duplicates

v1.0.0
Returns true if an array has duplicate elements or a string has duplicate characters.

class-ancestors

v1.0.1
For a given class, returns an array with its parent class, the parent’s parent, and so on.

sequential-indexof

v1.0.0
Returns the index of the first instance; when called a second time, returns the index of the second instance; and so on. Works with arrays and strings.

deduplicate

v1.0.0
Remove duplicate array elements or string characters.

follows-order

v1.0.0
Checks that specific array elements or string characters appear only in a certain order.

case-insensitive

v1.0.0
Wraps around an array or string and transforms certain methods into case-insensitive versions.

possible-function

v1.0.1
Defines fallback behavior in case a variable is not a function. Perfect for optional callback parameters.

remove-prefix

v2.0.0
Removes a string from the beginning of another string.

has-setter

v1.0.0
Checks if an object has a property with a defined setter function.

has-getter

v1.0.0
Checks if an object has a property with a defined getter function.