.has()

Checks if there is any entry matching the provided filter.

has(filter)

// Note: Users is a collection.

Users.getAll(); // [{ id: 1, name: '5antos' }]

Users.has(u => u.name === '5antos'); // true
Users.has(u => u.id === 2); // false

Last updated