Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A minimal lazy iterator implementation
$ npm install layzee
import layzee from 'layzee'
let range = layzee.range
let iter = layzee([1,2,3,4,5])
for (let o of iter) {
// do stuff
}
// using range
let r = range(0, 100) // generates [10..20)
r.filter(o => o % 11 === 0).take(3)
r.next() // { value: 0, done: false}
r.value() // [11, 22] iterator is fully realized
r.value() // [11, 22] - result is cached after first call to value()
r.next() // { done: true }
// using generators
function* genEven () {
let i = 0
while (i % 2 === 0) {
i += 2
yield i
}
}
let even5 = layzee(genEven()).take(5)
even5.value() // [2,4,6,8,10]
MIT
1.0.0 / 2020-05-23
isIterable
max
and min
one()
to first()
FAQs
A minimal lazy iterator implementation
We found that layzee demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.