21 lines
410 B
JavaScript
Executable File
21 lines
410 B
JavaScript
Executable File
'use strict';
|
|
|
|
var slice = require('array-slice');
|
|
|
|
var defaults = require('./mutable');
|
|
|
|
/**
|
|
* Extends an empty object with properties of one or
|
|
* more additional `objects`
|
|
*
|
|
* @name .defaults.immutable
|
|
* @param {Object} `objects`
|
|
* @return {Object}
|
|
* @api public
|
|
*/
|
|
|
|
module.exports = function immutableDefaults() {
|
|
var args = slice(arguments);
|
|
return defaults.apply(null, [{}].concat(args));
|
|
};
|