UNPKG

@mattseligman/lotide

Version:

Lotide is a mini clone of the Lodash Library to practice crating a personal npm package. It's like lodash, but without all that extra stuff. Just the things you need to start your project.

15 lines (11 loc) 403 B
const eqArrays = require('./eqArrays'); const assertArraysEqual = function(result, expectation) { const success = `✅✅✅ Assertion Passed: ${result} === ${expectation}`; const fail = `🛑🛑🛑 Assertion Failed: ${result} !== ${expectation}`; if (eqArrays(result , expectation)) { console.log(success); } else { console.log(fail); } }; module.exports = assertArraysEqual;