UNPKG

json-stringify-deterministic

Version:

deterministic version of JSON.stringify() so you can get a consistent hash from stringified results.

12 lines (10 loc) 269 B
'use strict' module.exports = { isArray: Array.isArray, assign: Object.assign, isObject: v => typeof v === 'object', isFunction: v => typeof v === 'function', isBoolean: v => typeof v === 'boolean', isRegex: v => v instanceof RegExp, keys: Object.keys }