TypeScript tsfun subtractObj示例

说明

typescript tsfun subtractobj示例是从最受好评的开源项目中提取的实现代码,你可以参考下面示例的使用方式。

编程语言: TypeScript

命名空间/包名称: tsfun

示例#1
文件: document.ts 项目: dainst/idai-components-2

        return (document: D): D => {

            const result = copyObj(document);
            result.resource.relations = subtractObj(relations)(result.resource.relations);
            return result as D;
        };

示例#2
文件: document.ts 项目: dainst/idai-components-2

        return (document: D): D => {

            const result = copyObj(document);
            result.resource = subtractObj(fields)(document.resource) as Resource;
            return result as D;
        };

展开阅读全文