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.

16 lines
319 B

4 years ago
  1. /*!
  2. * for-in <https://github.com/jonschlinkert/for-in>
  3. *
  4. * Copyright (c) 2014-2017, Jon Schlinkert.
  5. * Released under the MIT License.
  6. */
  7. 'use strict';
  8. module.exports = function forIn(obj, fn, thisArg) {
  9. for (var key in obj) {
  10. if (fn.call(thisArg, obj[key], key, obj) === false) {
  11. break;
  12. }
  13. }
  14. };