1.0.1 • Published 5 years ago
deep_tool v1.0.1
HOW TO USE
Firstly, install deep_tool
:
$ npm install deep_tool
Then 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