index.js 319 B

12345678910111213141516
  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. };