Add len() func

This commit is contained in:
Anton Medvedev 2023-09-24 14:23:36 +02:00
parent 289165d553
commit e2c42139ae
No known key found for this signature in database

View File

@ -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)]
}