fast-af
v0.3.0
Published
Collection of fastest JavaScript algorithms.
Downloads
2,339
Readme
fast-af
Curated collection of fastest JavaScript algorithms.
extend()
Extends arbitrary number object (similar how Object.assign()
works).
import {extend} from 'fast-af/extend';
extend(a, b, {foo: 'bar'});
shallowEqual()
Shallow compares two objects for equality.
import {shallowEqual} from 'fast-af/shallowEqual';
const isEqual = shallowEqual({foo: 'bar'}, {foo: 'bar'});
deepEqual()
Compares recursively JavaScript objects for equality.
import {deepEqual} from 'fast-af/deepEqual';
const isEqual = deepEqual({foo: 'bar'}, {foo: 'bar'});
stableStringify()
Predictably stringifies plain JavaScript objects.
import {stableStringify} from 'fast-af/stableStringify';
const str = stableStringify({foo: 'bar'});