OpenPnP is a project to create the plans, prototype and software for a completely Open Source SMT pick and place machine that anyone can afford. I believe that with the ubiquity of cheap, precise motion control hardware, some ingenuity and plenty of
PropPick
从对象过滤属性的最简单方法
// filtering "a" and "c" from obj
var obj = { a : 1 , b : 2 , c : 3 , d : 4 }
pick ( ( a , c ) => obj ) ;
//=> { a:1, c:3 }
用法:
只需调用pick()传递一个函数即可,该函数接收作为参数的属性,并返回您要从中进行选择的对象。
例子:
import pick from 'prop-pick'
// filt