@xiaoyaoliu/omit
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Omit 函数

Utility function to create a shallow copy of an object which had dropped some fields.

Usage

npm i --save @xiaoyaoliu/omit
import omit from '@xiaoyaoliu/omit';
omit({ name: 'Benjy', age: 18 }, ['name']); // => { age: 18 }

Readme

Keywords

none

Package Sidebar

Install

npm i @xiaoyaoliu/omit

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

14 kB

Total Files

9

Last publish

Collaborators

  • xiaoyao0117