Add len() func

pull/275/head
Anton Medvedev 9 months ago
parent 289165d553
commit e2c42139ae
No known key found for this signature in database

@ -128,6 +128,10 @@ async function transform(json, code) {
return `x => Object.values(${obj}).flatMap(${fold(s)})`
}
function len(array) {
return array.length
}
function uniq(array) {
return [...new Set(array)]
}

Loading…
Cancel
Save