shapify:with借助完整的TypeScript支持轻松转换对象重命名键

时间:2021-05-12 21:06:27
【文件属性】:
文件名称:shapify:with借助完整的TypeScript支持轻松转换对象重命名键
文件大小:87KB
文件格式:ZIP
更新时间:2021-05-12 21:06:27
javascript utility typescript functional JavaScript 羞辱 通过TS支持轻松重塑对象 安装 npm install shapify # or yarn install shapify 用法 基本用法 给定一系列用户: const users = [ { fullname : 'Eduardo San Martin morote' , id : 1 , more : 'properties' , that : 'exist' , but : "you don't always need" ] } , // more users ] 您可以变换对象 import { shapify } from 'shapify' const reshapedUser = shapify ( { text : 'fullname' , value : 'id' , } , users [ 0 ] ) /** * onl
【文件预览】:
shapify-master
----.eslintrc(60B)
----benchmark()
--------index.js(1KB)
--------data.js(1KB)
----index.js(914B)
----package.json(1KB)
----.github()
--------dependabot.yml(144B)
--------funding.yml(50B)
--------PULL_REQUEST_TEMPLATE.md(1KB)
--------ISSUE_TEMPLATE.md(253B)
--------CONTRIBUTING.md(1KB)
--------settings.yml(474B)
--------CODE_OF_CONDUCT.md(1KB)
----LICENSE(1KB)
----index.spec.js(2KB)
----.gitignore(22B)
----.release-it.json(301B)
----circle.yml(804B)
----types()
--------tsconfig.json(5KB)
--------index.d.ts(1KB)
--------index.spec.ts(1KB)
----README.md(3KB)
----yarn.lock(186KB)

网友评论