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