0.2.0 - Mid migration

This commit is contained in:
Daniel Mason 2022-04-25 14:47:15 +12:00
parent 139e6a915e
commit 7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions

9
web/node_modules/ext/docs/function/identity.md generated vendored Normal file
View file

@ -0,0 +1,9 @@
# `Function.identity` _(ext/function/identity)_
Returns input argument.
```javascript
const identity = require("ext/function/identity");
identity("foo"); // "foo"
```

9
web/node_modules/ext/docs/global-this.md generated vendored Normal file
View file

@ -0,0 +1,9 @@
# `globalThis` _(ext/global-this)_
Returns global object. Resolve native [globalThis](https://github.com/tc39/proposal-global) if implemented, otherwise fallback to internal resolution of a global object.
```javascript
const globalThis = require("ext/global-this");
globalThis.Array === Array; // true
```

10
web/node_modules/ext/docs/math/ceil-10.md generated vendored Normal file
View file

@ -0,0 +1,10 @@
# `Math.ceil10` _(ext/math/ceil-10)_
Decimal ceil
```javascript
const ceil10 = require("ext/math/ceil-10");
ceil10(55.51, -1); // 55.6
ceil10(-59, 1); // -50;
```

10
web/node_modules/ext/docs/math/floor-10.md generated vendored Normal file
View file

@ -0,0 +1,10 @@
# `Math.floor10` _(ext/math/floor-10)_
Decimal floor
```javascript
const floor10 = require("ext/math/floor-10");
floor10(55.59, -1); // 55.5
floor10(59, 1); // 50
```

10
web/node_modules/ext/docs/math/round-10.md generated vendored Normal file
View file

@ -0,0 +1,10 @@
# `Math.round10` _(ext/math/round-10)_
Decimal round
```javascript
const round10 = require("ext/math/round-10");
round10(55.549, -1); // 55.5
round10(1.005, -2); // 1.01
```

11
web/node_modules/ext/docs/object/entries.md generated vendored Normal file
View file

@ -0,0 +1,11 @@
# `Object.entries` _(ext/object/entries)_
[Object.entries](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries) implementation.
Returns native `Object.entries` if it's implemented, otherwise library implementation is returned
```javascript
const entries = require("ext/object/entries");
entries({ foo: "bar" }); // [["foo", "bar"]]
```

31
web/node_modules/ext/docs/string/random.md generated vendored Normal file
View file

@ -0,0 +1,31 @@
# `String.random(options = { ... })` _(ext/string/random)_
Returns generated random string, contained only of ascii cars `a-z` and `0-1`.
By default returns string of length `10`.
```javascript
const random = require("ext/string/random");
random(); // "upcfns0i4t"
random({ length: 3 }); // "5tw"
```
## Supported options:
### `isUnique: false`
Ensures generated string is unique among ones already returned.
_Note: When not applying this setting, accidental generation of same string is still highly unlikely. Provided option is just to provide a mean to eliminate possibility of an edge case of duplicate string being returned_
### `length: 10`
Desired length of result string
### `charset: null`
Fixed list of possible characters
```javascript
random({ charset: "abc" }); // "bacbccbbac"
```

10
web/node_modules/ext/docs/string_/includes.md generated vendored Normal file
View file

@ -0,0 +1,10 @@
# `string.includes(position = 0)` _(ext/string\_/includes)_
`includes` method for strings. Resolve native [includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes) if implemented, otherwise fallback to shim implementation.
```javascript
const includes = require("ext/string_/includes");
includes.call("razdwa", "raz"); // true
includes.call("razdwa", "trzy"); // false
```

9
web/node_modules/ext/docs/thenable_/finally.md generated vendored Normal file
View file

@ -0,0 +1,9 @@
# `thenable.finally` _(ext/thenable\_/finally)_
`finally` method for any _thenable_ input
```javascript
const finally = require("ext/thenable_/finally");
finally.call(thenable, () => console.log("Thenable resolved"));
```