/extensions

Primary LanguageTypeScript

@ariesclark/extensions logo

This package is a collection of extensions for JavaScript objects, arrays, strings, numbers, and numerous other functions.

Packages

@ariesclark/extensions @ariesclark/array @ariesclark/number @ariesclark/object @ariesclark/string

Installation

npm install @ariesclark/extensions
import { identity, empty, pick } from '@ariesclark/extensions';

identity('lorem'); // 'lorem'
pick({ hello: 'world', lorem: 'ipsum' }, ['hello']); // { hello: 'world' }
// And so on...