You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
234 B

4 years ago
  1. 'use strict';
  2. var values = require('../helpers/values');
  3. module.exports = function every(fn) {
  4. var items = values(this.items);
  5. return items.map(function (item, index) {
  6. return fn(item, index);
  7. }).indexOf(false) === -1;
  8. };