shuffle-props:随机调整对象中属性的顺序

时间:2021-05-19 16:51:02
【文件属性】:
文件名称:shuffle-props:随机调整对象中属性的顺序
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-19 16:51:02
JavaScript 随机道具 随机调整对象中属性的顺序 npm install shuffle-props 用法 var shuffleProps = require ( 'shuffle-props' ) ; var obj = { a : 1 , b : 2 : c : 3 } ; var shuffledObj = shuffleProps ( obj ) ; console . log ( shuffledObj ) ; // { b: 2, a: 1, c: 3} or something like that
【文件预览】:
shuffle-props-master
----test.js(805B)
----package.json(411B)
----shuffleProps.js(621B)
----LICENSE(1KB)
----.gitignore(13B)
----README.md(321B)

网友评论