index.js 311 B

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