Returns true if predicate yields true for any value in map. Use find if you want the matched value.
predicate
map
const map = new Map();map.set(`fruit`, `apple`);map.set(`colour`, `red`);Maps.some(map, v => v === `red`); // trueMaps.some(map, v => v === `orange`); // false Copy
const map = new Map();map.set(`fruit`, `apple`);map.set(`colour`, `red`);Maps.some(map, v => v === `red`); // trueMaps.some(map, v => v === `orange`); // false
Returns true if
predicate
yields true for any value inmap
. Use find if you want the matched value.