GoScrobble/web/node_modules/lodash-es/stubObject.js

24 lines
398 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
/**
* This method returns a new empty object.
*
* @static
* @memberOf _
* @since 4.13.0
* @category Util
* @returns {Object} Returns the new empty object.
* @example
*
* var objects = _.times(2, _.stubObject);
*
* console.log(objects);
* // => [{}, {}]
*
* console.log(objects[0] === objects[1]);
* // => false
*/
function stubObject() {
return {};
}
export default stubObject;