• File: stubObject.js
  • Full Path: /var/www/nodejs/callDir/node_modules/lodash/stubObject.js
  • Date Modified: 06/03/2024 5:11 PM
  • File size: 400 bytes
  • MIME-type: text/plain
  • Charset: utf-8
/**
 * 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 {};
}

module.exports = stubObject;