my-idlers/node_modules/collect.js/dist/methods/firstWhere.js

5 lines
137 B
JavaScript
Raw Normal View History

'use strict';
module.exports = function firstWhere(key, operator, value) {
return this.where(key, operator, value).first() || null;
};