a set of JS helpers inspired by .NET BCL, TC 39 drafts, and more, which hopefully reduces repetitive work by filling the gaps in the native JavaScript API.
This is the entry-point package of the jscorlib
library.
This package is an ESM package that has been transpiled with ES2022 language target. Please transpile the JS files once more and/or apply polyfills as your compatibility need, if you are the end-user of the package.
This package is tree-shakable.
This package contains core functionalities that extends JS API for a bit, including
string
/ Array
/ Number
/ Promise
Lazy
& AsyncLazy
containersError
sub-classesEventEmitter
supporting synchronous & asynchronous handlersHttpRequestError
, and a factory function that takes Response
as inputLINQ
-like chainable "Fluent" syntax for querying over any Iterable
Semaphore
that has been long existing in native languages, which does not make any sense in JS until asynchronous functions are introducedtypeof
operator and object "prototype holders"For details, please refer to the API documentation of the package.