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.
20 lines
410 B
20 lines
410 B
'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));
|
|
};
|
|
|