Why does Array.prototype.every return true on an empty array?
[].every(i => i instanceof Node) // -> true Why does the every method on arrays in JavaScript return true when the array is empty. I’m trying to do type assertion like so… const isT = (val, str) => typeof val === str const nT = (val, str) => !isT(val, str) const is = {} is.Undef […]