copy-list
v0.0.2
Published
copy list data
Downloads
5
Readme
CopyList
将list中的数据复制到剪切板
Installation
$ npm install copy-list
Or
$ yarn add copy-list
Usage
import CopyList from 'copy-list';
const list = [
{
name: 'zhang si rui',
age: 19,
height: 176.2
},
{
name: 'li fo',
age: 18,
height: 180.4
},
{
name: 'wang fa wu',
age: 19,
height: 179.1
}
];
function onClick(){
const result = CopyList(list, ['name', 'age', 'height']);
if (result) {
console.log('success');
} else {
console.log('error');
}
}