frontend/.pnpm-store/v3/files/0c/c4b4dba0964f40da1951514f47d5f01a3ef5b7c56671b54f3e6b648a833b633d6a745c6b179bc3e8f9ca03bd98565f958d8bc3a684ee914952ab58a3c72e71

12 lines
441 B
Plaintext

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);
}