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

12 lines 371 B
/** * Checking for the presence of a method by its name with confirmation for TypeScript * @param value Object to check * @param method Method name */ export function hasMethod(value, method) { return Boolean(value && typeof value === 'object' && method in value && typeof value[method] === 'function'); } //# sourceMappingURL=index.js.map