deep_tool
v1.0.1
Published
Tool to copy/compare objects/arrays and others at a depth.
Readme
HOW TO USE
Firstly, install deep_tool:
$ npm install deep_toolThen require it and use.
const {compare, copy} = require('deep_tool');
let arr = [1, 2, 3, [4, 5]];
let arr_copy = copy(arr);
console.log(arr == arr_copy) // false
console.log(compare(arr, arr_copy)) // true
arr_copy[3] = 4;
console.log(compare(arr, arr_copy)) // false