JavaScript allows functions to work flexibly when the arguments passed are of different types and/or at different positions: The useState Hook lets you pass an initial value or a function for lazy initialization, or you can skip it altogether and pass nothing to it. The query API from node-postgres accepts an optional callback function andContinue reading “Type Polymorphic Functions In TypeScript”
Tag Archives: JavaScript
QuickJS Javascript Engine
QuickJS is a small and embeddable Javascript engine. It supports the ES2020 specification including modules, asynchronous generators, proxies and BigInt. It optionally supports mathematical extensions such as big decimal floating point numbers (BigDecimal), big binary floating point numbers (BigFloat) and operator overloading. Read more…