Added Gulp.js for compiling SCSS stylesheets
This commit is contained in:
9
node_modules/ext/docs/function/identity.md
generated
vendored
Normal file
9
node_modules/ext/docs/function/identity.md
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
# `Function.identity` _(ext/function/identity)_
|
||||
|
||||
Returns input argument.
|
||||
|
||||
```javascript
|
||||
const identity = require("ext/function/identity");
|
||||
|
||||
identity("foo"); // "foo"
|
||||
```
|
9
node_modules/ext/docs/global-this.md
generated
vendored
Normal file
9
node_modules/ext/docs/global-this.md
generated
vendored
Normal 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
node_modules/ext/docs/math/ceil-10.md
generated
vendored
Normal file
10
node_modules/ext/docs/math/ceil-10.md
generated
vendored
Normal 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
node_modules/ext/docs/math/floor-10.md
generated
vendored
Normal file
10
node_modules/ext/docs/math/floor-10.md
generated
vendored
Normal 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
node_modules/ext/docs/math/round-10.md
generated
vendored
Normal file
10
node_modules/ext/docs/math/round-10.md
generated
vendored
Normal 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
|
||||
```
|
12
node_modules/ext/docs/object/clear.md
generated
vendored
Normal file
12
node_modules/ext/docs/object/clear.md
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
# `Object.clear` _(ext/object/clear)_
|
||||
|
||||
Deletes all own, enumerable, non-symbol properties in the object
|
||||
|
||||
```javascript
|
||||
const clear = require("ext/object/clear");
|
||||
|
||||
const obj = { foo: "bar" };
|
||||
|
||||
clear(obj);
|
||||
Object.keys(obj); // []
|
||||
```
|
11
node_modules/ext/docs/object/entries.md
generated
vendored
Normal file
11
node_modules/ext/docs/object/entries.md
generated
vendored
Normal 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"]]
|
||||
```
|
13
node_modules/ext/docs/promise/limit.md
generated
vendored
Normal file
13
node_modules/ext/docs/promise/limit.md
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
# `Promise.limit` _(ext/promise/limit)_
|
||||
|
||||
Helps to limit concurrency of asynchronous operations.
|
||||
|
||||
```javascript
|
||||
const limit = require("ext/promise/limit").bind(Promise);
|
||||
|
||||
const limittedAsyncFunction = limit(2, asyncFunction);
|
||||
|
||||
imittedAsyncFunction(); // Async operation started
|
||||
imittedAsyncFunction(); // Async operation started
|
||||
imittedAsyncFunction(); // On hold until one of previously started finalizes
|
||||
```
|
31
node_modules/ext/docs/string/random.md
generated
vendored
Normal file
31
node_modules/ext/docs/string/random.md
generated
vendored
Normal 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"
|
||||
```
|
9
node_modules/ext/docs/string_/camel-to-hyphen.md
generated
vendored
Normal file
9
node_modules/ext/docs/string_/camel-to-hyphen.md
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
# `string.camelToHyphen()` _(ext/string\_/camel-to-hyphen)_
|
||||
|
||||
Convert camelCase string to hyphen separated, e.g. `oneTwoThree` into `one-to-three`. Useful when converting names from js property convention into filename convention.
|
||||
|
||||
```javascript
|
||||
const camelToHyphen = require("ext/string_/camelToHyphen");
|
||||
|
||||
camelToHyphen.call("razDwaTrzy"); // raz-dwa-trzy
|
||||
```
|
9
node_modules/ext/docs/string_/capitalize.md
generated
vendored
Normal file
9
node_modules/ext/docs/string_/capitalize.md
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
# `string.capitalize()` _(ext/string\_/capitalize)_
|
||||
|
||||
Capitalize input string, e.g. convert `this is a test` into `This is a test`.
|
||||
|
||||
```javascript
|
||||
const capitalize = require("ext/string_/capitalize");
|
||||
|
||||
capitalize.call("this is a test"); // This is a test
|
||||
```
|
10
node_modules/ext/docs/string_/includes.md
generated
vendored
Normal file
10
node_modules/ext/docs/string_/includes.md
generated
vendored
Normal 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
node_modules/ext/docs/thenable_/finally.md
generated
vendored
Normal file
9
node_modules/ext/docs/thenable_/finally.md
generated
vendored
Normal 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"));
|
||||
```
|
Reference in New Issue
Block a user