UNPKG

@azure/search-documents

Version:
17 lines 588 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /** * Returns true if all specified properties of the item are undefined. * @param item The object to check. * @param properties The list of property names to check on the item. * @returns True if all specified properties are undefined, otherwise false. */ export function areAllPropsUndefined(item, properties) { for (const property of properties) { if (item[property] !== undefined) { return false; } } return true; } //# sourceMappingURL=check-prop-undefined.js.map