Jordan Harband's repositories
object-keys
Object.keys shim
es-to-primitive
ECMAScript "ToPrimitive" algorithm. Provides ES5 and ES6/ES2015 versions.
require-allow-edits
A GitHub action to require "allow edits" to be checked on a PR.
html-element-map
Look up HTML tag names via HTML Element constructors, and vice versa.
promiseback
Accept an optional node-style callback, and also return a spec-compliant Promise!
make-generator-function
Returns an arbitrary generator function, or undefined if generator syntax is unsupported.
document.contains
Polyfill/shim for `document.contains`
intl-fallback-symbol
ECMA-402 Intl spec's internal `FallbackSymbol`
iterate-value
Iterate any iterable JS value. Works robustly in all environments, all versions.
make-async-function
Function that returns an arbitrary `async function`, or undefined if `async function` syntax is unsupported.
big-integer-max
Given two valid integers in string form, return the larger of the two.
es-value-fixtures
Fixtures of ES values, for testing purposes.
iterate-iterator
Iterate any JS iterator. Works robustly in all environments, all versions.
make-arrow-function
Function that returns an arbitrary arrow function, or undefined if arrow function syntax is unsupported.
node-comments
Transform comments in JS files between multiple styles - single-line, multi-line, both, and more to come!
big-integer-min
Given two valid integers in string form, return the smaller of the two.
lockfile-info
Info about an npm project - which lockfile version, which lockfile(s) are present, etc.
make-async-generator-function
Function that returns an arbitrary async generator function, or undefined if async generator syntax is unsupported.