23 lines
354 B
JavaScript
23 lines
354 B
JavaScript
/**
|
|
* Created by WebStorm.
|
|
* User: martin
|
|
* Date: 27/07/2020
|
|
* Time: 10:08
|
|
|
|
*/
|
|
|
|
const jsonfile = require('jsonfile');
|
|
|
|
const data = require('./unused.json');
|
|
|
|
function show(size) {
|
|
const f = data.filter((v) => {
|
|
return (v.length === size);
|
|
});
|
|
|
|
jsonfile.writeFileSync('limited.json', [...new Set(f)]);
|
|
console.log('done');
|
|
}
|
|
|
|
show(11);
|