Nav apraksta

immutable.js 410B

1234567891011121314151617181920
  1. 'use strict';
  2. var slice = require('array-slice');
  3. var defaults = require('./mutable');
  4. /**
  5. * Extends an empty object with properties of one or
  6. * more additional `objects`
  7. *
  8. * @name .defaults.immutable
  9. * @param {Object} `objects`
  10. * @return {Object}
  11. * @api public
  12. */
  13. module.exports = function immutableDefaults() {
  14. var args = slice(arguments);
  15. return defaults.apply(null, [{}].concat(args));
  16. };