๐Ÿ“šย Reference


๐Ÿ“œย Chapter


BST (Binary Search Tree)

every()


arr.every(callback[, thisArg])
const isBelowThreshold = (currentValue) => currentValue < 40;

const array1 = [1, 30, 39, 29, 10, 13];

console.log(array1.every(isBelowThreshold));
// expected output: true