import {count, countBy} from '@zqbx/fun-plus'
// 默认使用的全局变量:f
count([1,2,2,2,23,4,2,3,4,5])
// => { '1': 1, '2': 4, '3': 2, '4': 2, '5': 1, '23': 1 }
countBy([{zmb:'123'}, {zmb:'123'}, {zmb:'12344'}], item => item.zmb)
// => { '123': 2, '12344': 1 }
countBy([6.1, 4.2, 6.3])
// => {'6': 2,'4': 1}
pick({name:'abc', age:28, sex:'男'}, 'name')
// => { 'name': 'abc'}
pick({name:'abc', age:28, sex:'男'}, ['name', 'age'])
// => { 'name': 'abc', 'age': 28 }
pick({name:'abc', age:28, sex:'男', true}, ['name', 'age'])
// => ['abc',28 ]
let debounced = debounce(callbackFun, 1000)
//第三个参数是一个boolean,false:代表非立即运行;ture:代表立即运行
let throttle_one = throttle(callbackFun, 1000)
let throttle_two = throttle(callbackFun, 1000, ture)