📅  最后修改于: 2020-10-19 04:00:39             🧑  作者: Mango
Underscore.JS具有许多易于使用的方法,可帮助更新对象。本章将详细讨论它们。
Underscore.JS提供了多种方法来处理对象更新,如下所示-
Sr.No. | Method & Syntax |
---|---|
1 | extend
_.extend(destination, *sources) |
2 | pick
_.pick(object, *keys) |
3 | omit
_.omit(object, *keys) |
4 | defaults
_.defaults(object, *defaults) |
5 | clone
_.clone(object) |
6 | tap
_.tap(object, interceptor) |
7 | has
_.has(object, key) |
8 | property
_.property(path) |
9 | propertyOf
_.propertyOf(object) |