Files
Speedtest-Tracker/conf/site/node_modules/collect.js/docs/api/has.md
Henry Whitaker ea5808047f Tweaked gitignore
gitignore removed all composer and npm files, so automated builds would fail
2020-04-12 21:24:03 +01:00

407 B

has()

The has method determines if one or more keys exists in the collection:

const collection = collect({
  animal: 'unicorn',
  ability: 'magical',
});

collection.has('ability');

// true

collection.has(['animal', 'ability']);

// true

collection.has(['animal', 'ability', 'name']);

// false

View source on GitHub