UNPKG

merge-change

Version:

Advanced library for deep merging, patching, and immutable updates of data structures. Features declarative operations for specific merging behaviors, property management, custom type merging rules, and difference tracking. Supports complex data transform

15 lines 472 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasMethod = hasMethod; /** * Checking for the presence of a method by its name with confirmation for TypeScript * @param value Object to check * @param method Method name */ function hasMethod(value, method) { return Boolean(value && typeof value === 'object' && method in value && typeof value[method] === 'function'); } //# sourceMappingURL=index.js.map