Socket
Socket
Sign inDemoInstall

rambda

Package Overview
Dependencies
Maintainers
1
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rambda - npm Package Compare versions

Comparing version 0.8.2 to 0.8.3

452

docs/README.md

@@ -33,3 +33,3 @@ [![Build Status](https://img.shields.io/travis/selfrefactor/rambda.svg)](https://travis-ci.org/selfrefactor/rambda)

```
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.8.0/webVersion.js
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.8.3/webVersion.js
```

@@ -55,3 +55,7 @@

- Rambda's **partialCurry** and **includes** are not part of Ramda API.
- Rambda's **defaultTo** approve incoming argument only if it has the same type as the default argument.
- Rambda's **reverse** modifies the array, instead of returning reversed copy of it.
- Rambda's **partialCurry** is not part of Ramda API.

@@ -69,3 +73,3 @@ - **Rambda** is tested for compatability with **Ramda.flip**, as this method could be useful in some cases.

```javascript
R.add(2, 3) //=> 5
R.add(2, 3) // => 5
```

@@ -89,8 +93,15 @@

- Replaces `i` index in `arr` with the result of `replaceFn(arr[i])`
It replaces `i` index in `arr` with the result of `replaceFn(arr[i])`.
```javascript
R.adjust(a => a + 1, 0, [0, 100]) //=> [1, 100]
R.adjust(a => a + 1, 0, [0, 100]) // => [1, 100]
```
#### always
```
const fn = R.always('foo')
fn() // => 'foo'
```
#### any

@@ -100,7 +111,8 @@

- Returns true if at least one member of `arr` returns true, when passed to the `condition` function
It returns true if at least one member of `arr` returns true,
when passed to the `condition` function.
```javascript
R.any(a => a * a > 8)([1, 2, 3]) //=> true
R.any(a => a * a > 10)([1, 2, 3]) //=> false
R.any(a => a * a > 8)([1, 2, 3]) // => true
R.any(a => a * a > 10)([1, 2, 3]) // => false
```

@@ -113,3 +125,3 @@

```javascript
R.append('foo', ['bar', 'baz']) //=> ['foo', 'bar', 'baz']
R.append('foo', ['bar', 'baz']) // => ['foo', 'bar', 'baz']
```

@@ -121,3 +133,3 @@

Performs right-to-left function composition
It performs right-to-left function composition.
```

@@ -131,2 +143,13 @@ const result = R.compose(

#### concat
> concat(x: Array|String, y: Array|String): Array|String
It returns new string or array, which is result merging `x` and `y`.
```
R.concat([1, 2])([3, 4]) // => [1, 2, 3, 4]
R.concat('foo', 'bar') // => 'foobar'
```
#### contains

@@ -136,7 +159,7 @@

Returns true if `valueToFind` is part of `arr`
It returns true if `valueToFind` is part of `arr`.
```javascript
R.contains(2, [1, 2]) //=> true
R.contains(3, [1, 2]) //=> false
R.contains(2, [1, 2]) // => true
R.contains(3, [1, 2]) // => false
```

@@ -148,3 +171,3 @@

Returns curried version of `fn`
It returns curried version of `fn`.

@@ -163,12 +186,18 @@ ```javascript

Returns `defaultArgument` if `inputArgument` is `undefined` or the type of `inputArgument` is different of the type of `defaultArgument`.
It returns `defaultArgument` if `inputArgument` is `undefined` or the type of `inputArgument` is different of the type of `defaultArgument`.
Returns `inputArgument` in any other case.
It returns `inputArgument` in any other case.
```javascript
R.defaultTo('foo', undefined) //=> 'foo'
R.defaultTo('foo')('bar') //=> 'bar'
R.defaultTo('foo')(1) //=> 'foo'
R.defaultTo('foo', undefined) // => 'foo'
R.defaultTo('foo')('bar') // => 'bar'
R.defaultTo('foo')(1) // => 'foo'
```
#### divide
```javascript
R.divide(71, 100) // => 0.71
```
#### drop

@@ -178,7 +207,7 @@

Returns `arrOrStr` with `howManyToDrop` items dropped from the left
It returns `arrOrStr` with `howManyToDrop` items dropped from the left.
```javascript
R.drop(1, ['foo', 'bar', 'baz']) //=> ['bar', 'baz']
R.drop(1, 'foo') //=> 'oo'
R.drop(1, ['foo', 'bar', 'baz']) // => ['bar', 'baz']
R.drop(1, 'foo') // => 'oo'
```

@@ -190,9 +219,25 @@

Returns `arrOrStr` with `howManyToDrop` items dropped from the right
It returns `arrOrStr` with `howManyToDrop` items dropped from the right.
```javascript
R.dropLast(1, ['foo', 'bar', 'baz']) //=> ['foo', 'bar']
R.dropLast(1, 'foo') //=> 'fo'
R.dropLast(1, ['foo', 'bar', 'baz']) // => ['foo', 'bar']
R.dropLast(1, 'foo') // => 'fo'
```
#### endsWith
> endsWith(x: any, arrOrStr: Array|String): Boolean
```
R.endsWith(
'bar',
"foo-bar"
) // => true
R.endsWith(
'baz',
"foo-bar"
) // => false
```
#### equals

@@ -202,12 +247,16 @@

- Returns equality match between `a` and `b`
It returns equality match between `a` and `b`.
Doesn't handles cyclical data structures
It doesn't handle cyclical data structures.
```javascript
R.equals(1, 1) //=> true
R.equals({}, {}) //=> false
R.equals([1, 2, 3], [1, 2, 3]) //=> true
R.equals(1, 1) // => true
R.equals({}, {}) // => false
R.equals([1, 2, 3], [1, 2, 3]) // => true
```
#### F
`R.F() // => false`
#### filter

@@ -222,3 +271,3 @@

R.filter(filterFn, [1, 2, 3, 4]) //=> [2, 4]
R.filter(filterFn, [1, 2, 3, 4]) // => [2, 4]
```

@@ -230,3 +279,3 @@

Returns `undefined` or the first element of `arr` satisfying `findFn`
It returns `undefined` or the first element of `arr` satisfying `findFn`.

@@ -236,3 +285,3 @@ ```javascript

const arr = [{foo: "bar"}, {foo: 1}]
R.find(findFn, arr) //=> {foo: 1}
R.find(findFn, arr) // => {foo: 1}
```

@@ -244,3 +293,3 @@

Returns `-1` or the index of the first element of `arr` satisfying `findFn`
It returns `-1` or the index of the first element of `arr` satisfying `findFn`.

@@ -250,3 +299,3 @@ ```javascript

const arr = [{foo: "bar"}, {foo: 1}]
R.find(findFn, arr) //=> 1
R.find(findFn, arr) // => 1
```

@@ -260,3 +309,3 @@

R.flatten([ 1, [ 2, [ 3 ] ] ]
//=> [ 1, 2, 3 ]
// => [ 1, 2, 3 ]
```

@@ -268,7 +317,7 @@

- Returns `true` if `obj` has property `prop`
- It returns `true` if `obj` has property `prop`.
```javascript
R.has("a", {a: 1}) //=> true
R.has("b", {a: 1}) //=> false
R.has("a", {a: 1}) // => true
R.has("b", {a: 1}) // => false
```

@@ -280,9 +329,30 @@

- Returns the first element of `arrOrStr`
It returns the first element of `arrOrStr`.
```javascript
R.head([1, 2, 3]) //=> 1
R.head('foo') //=> 'f'
R.head([1, 2, 3]) // => 1
R.head('foo') // => 'f'
```
#### ifElse
> ifElse(condition: Function, ifFn: Function, elseFn: Function): Function
It returns function, which expect `input` as argument and returns `finalResult`.
When the function is called, a value `answer` is generated as a result of `condition(input)`.
If `answer` is `true`, then `finalResult` is equal to `ifFn(input)`.
If `answer` is `false`, then `finalResult` is equal to `elseFn(input)`.
```
const fn = R.ifElse(
x => x > 10,
x => x*2,
x => x*10
)
fn(8) // => 80
fn(11) // => 22
```
#### indexOf

@@ -292,6 +362,6 @@

Returns `-1` or the index of the first element of `arr` equal of `valueToFind`
It returns `-1` or the index of the first element of `arr` equal of `valueToFind`.
```javascript
R.indexOf(1, [1, 2]) //=> 0
R.indexOf(1, [1, 2]) // => 0
```

@@ -303,7 +373,7 @@

- Returns all but the last element of `arrOrStr`
- It returns all but the last element of `arrOrStr`.
```javascript
R.init([1, 2, 3]) //=> [1, 2]
R.init('foo') //=> 'fo'
R.init([1, 2, 3]) // => [1, 2]
R.init('foo') // => 'fo'
```

@@ -316,3 +386,3 @@

```javascript
R.join('-', [1, 2, 3]) //=> '1-2-3'
R.join('-', [1, 2, 3]) // => '1-2-3'
```

@@ -324,9 +394,18 @@

- Returns the last element of `arrOrStr`
- It returns the last element of `arrOrStr`.
```javascript
R.last(['foo', 'bar', 'baz']) //=> 'baz'
R.last('foo') //=> 'o'
R.last(['foo', 'bar', 'baz']) // => 'baz'
R.last('foo') // => 'o'
```
#### lastIndexOf
> lastIndexOf(x: any, arr: Array): Number
```
R.lastIndexOf(1, [1, 2, 3, 1, 2]) // => 3
R.lastIndexOf(10, [1, 2, 3, 1, 2]) // => -1
```
#### length

@@ -337,3 +416,3 @@

```javascript
R.length([1, 2, 3]) //=> 3
R.length([1, 2, 3]) // => 3
```

@@ -345,7 +424,7 @@

Returns the result of looping through `arr` with `mapFn`
It returns the result of looping through `arr` with `mapFn`.
```javascript
const mapFn = x => x * 2;
R.map(mapFn, [1, 2, 3]) //=> [2, 4, 6]
R.map(mapFn, [1, 2, 3]) // => [2, 4, 6]
```

@@ -358,3 +437,3 @@

```javascript
R.match(/([a-z]a)/g, 'bananas') //=> ['ba', 'na', 'na']
R.match(/([a-z]a)/g, 'bananas') // => ['ba', 'na', 'na']
```

@@ -366,9 +445,42 @@

Returns result of `Object.assign({}, a, b)`
It returns result of `Object.assign({}, a, b)`.
```javascript
R.merge({ 'foo': 0, 'bar': 1 }, { 'foo': 7 })
//=> { 'foo': 7, 'bar': 1 }
// => { 'foo': 7, 'bar': 1 }
```
#### modulo
> modulo(a: Number, b: Number): Number
It returns the remainder of operation `a/b`.
```javascript
R.module(14,3) // => 2
```
#### multiply
> multiply(a: Number, b: Number): Number
It returns the result of operation `a*b`.
```javascript
R.module(14,3) // => 2
```
#### not
> not(x: any): Boolean
It returns inverted boolean version of input `x`.
```
R.not(true); //=> false
R.not(false); //=> true
R.not(0); //=> true
R.not(1); //=> false
```
#### omit

@@ -378,6 +490,6 @@

- Returns a partial copy of an `obj` with omitting `propsToOmit`
It returns a partial copy of an `obj` with omitting `propsToOmit`
```javascript
R.omit(['a', 'd'], {a: 1, b: 2, c: 3}) //=> {b: 2, c: 3}
R.omit(['a', 'd'], {a: 1, b: 2, c: 3}) // => {b: 2, c: 3}
```

@@ -389,8 +501,8 @@

- Retrieve the value at `pathToSearch` in object `obj`
Retrieve the value at `pathToSearch` in object `obj`
```javascript
R.path('a.b', {a: {b: 2}}) //=> 2
R.path(['a', 'b'], {a: {b: 2}}) //=> 2
R.path(['a', 'c'], {a: {b: 2}}) //=> undefined
R.path('a.b', {a: {b: 2}}) // => 2
R.path(['a', 'b'], {a: {b: 2}}) // => 2
R.path(['a', 'c'], {a: {b: 2}}) // => undefined
```

@@ -415,4 +527,5 @@

const curried = R.partialCurry(fn, {a: 2})
curried({b: 3, c: 10}) //=> 16
curried({b: 3, c: 10}) // => 16
```
- Note that `partialCurry` is method specific for **Rambda** and the method is not part of **Ramda**'s API

@@ -426,6 +539,6 @@

- Returns a partial copy of an `obj` containing only `propsToPick` properties
It returns a partial copy of an `obj` containing only `propsToPick` properties.
```
R.pick(['a', 'c'], {a: 1, b: 2}) //=> {a: 1}
R.pick(['a', 'c'], {a: 1, b: 2}) // => {a: 1}
```

@@ -437,6 +550,6 @@

- Returns list of the values of `property` taken from the objects in array of objects `arr`
It returns list of the values of `property` taken from the objects in array of objects `arr`.
```
R.pluck('a')([{a: 1}, {a: 2}, {b: 3}]) //=> [1, 2]
R.pluck('a')([{a: 1}, {a: 2}, {b: 3}]) // => [1, 2]
```

@@ -446,6 +559,8 @@

> prepend(valueToPrepend: any, arr: Array): Array
> prepend(x: any, arr: Array): Array
It adds `x` to the start of the array `arr`.
```javascript
R.prepend('foo', ['bar', 'baz']) //=> ['foo', 'bar', 'baz']
R.prepend('foo', ['bar', 'baz']) // => ['foo', 'bar', 'baz']
```

@@ -457,7 +572,7 @@

Returns `undefined` or the value of property `propToFind` in `obj`
It returns `undefined` or the value of property `propToFind` in `obj`
```javascript
R.prop('x', {x: 100}) //=> 100
R.prop('x', {a: 1}) //=> undefined
R.prop('x', {x: 100}) // => 100
R.prop('x', {a: 1}) // => undefined
```

@@ -469,3 +584,3 @@

Returns true if `obj` has property `propToFind` and its value is equal to `valueToMatch`
It returns true if `obj` has property `propToFind` and its value is equal to `valueToMatch`

@@ -475,4 +590,4 @@ ```javascript

const valueToMatch = 0
R.propEq(propToFind, valueToMatch)({foo: 0}) //=> true
R.propEq(propToFind, valueToMatch)({foo: 1}) //=> false
R.propEq(propToFind, valueToMatch)({foo: 0}) // => true
R.propEq(propToFind, valueToMatch)({foo: 1}) // => false
```

@@ -484,6 +599,6 @@

- Returns a array of numbers from `start`(inclusive) to `end`(exclusive)
It returns a array of numbers from `start`(inclusive) to `end`(exclusive).
```javascript
R.range(0, 2) //=> [0, 1]
R.range(0, 2) // => [0, 1]
```

@@ -495,3 +610,3 @@

- Returns a single item by iterating through the list, successively calling the iterator function `iteratorFn` and passing it an `accumulator` value and the current value from the array, and then passing the result to the next call.
It returns a single item by iterating through the list, successively calling the iterator function `iteratorFn` and passing it an `accumulator` value and the current value from the array, and then passing the result to the next call.

@@ -502,3 +617,3 @@ The iterator function behaves like the native callback of the [`Array.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce) method.

const iteratorFn = (acc, val) => acc + val
R.reduce(iteratorFn, 1, [1, 2, 3]) //=> 7
R.reduce(iteratorFn, 1, [1, 2, 3]) // => 7
```

@@ -511,3 +626,3 @@

```javascript
R.repeat('foo', 2) //=> ['foo', 'foo']
R.repeat('foo', 2) // => ['foo', 'foo']
```

@@ -522,7 +637,17 @@

```javascript
R.replace('foo', 'bar', 'foo foo') //=> 'bar foo'
R.replace(/foo/, 'bar', 'foo foo') //=> 'bar foo'
R.replace(/foo/g, 'bar', 'foo foo') //=> 'bar bar'
R.replace('foo', 'bar', 'foo foo') // => 'bar foo'
R.replace(/foo/, 'bar', 'foo foo') // => 'bar foo'
R.replace(/foo/g, 'bar', 'foo foo') // => 'bar bar'
```
#### reverse
!!! It modifies the array instead of returning new copy, as original `Ramda` method does.
```
const arr = [1, 2]
R.reverse(arr)
console.log(arr) // => [2, 1]
```
#### sort

@@ -532,3 +657,3 @@

Returns copy of `arr` sorted by `sortFn`
It returns copy of `arr` sorted by `sortFn`.

@@ -539,3 +664,3 @@ `sortFn` must return `Number`

const sortFn = (a, b) => a - b
R.sort(sortFn, [3, 1, 2]) //=> [1, 2, 3]
R.sort(sortFn, [3, 1, 2]) // => [1, 2, 3]
```

@@ -547,3 +672,3 @@

Returns copy of `arr` sorted by `sortFn`
It returns copy of `arr` sorted by `sortFn`.

@@ -558,3 +683,3 @@ `sortFn` must return value for comparison

])
//=> [{foo: 0}, {foo: 1}]
// => [{foo: 0}, {foo: 1}]
```

@@ -567,3 +692,3 @@

```javascript
R.split('-', 'a-b-c') //=> ['a', 'b', 'c']
R.split('-', 'a-b-c') // => ['a', 'b', 'c']
```

@@ -578,6 +703,22 @@

```javascript
R.splitEvery(2, [1, 2, 3]) //=> [[1, 2], [3]]
R.splitEvery(3, 'foobar') //=> ['foo', 'bar']
R.splitEvery(2, [1, 2, 3]) // => [[1, 2], [3]]
R.splitEvery(3, 'foobar') // => ['foo', 'bar']
```
#### startsWith
> startsWith(x: any, arrOrStr: Array|String): Boolean
```
R.endsWith(
'bar',
"foo-bar"
) // => true
R.endsWith(
'baz',
"foo-bar"
) // => false
```
#### subtract

@@ -587,6 +728,4 @@

Returns `a` minus `b`
```javascript
R.subtract(3, 1) //=> 2
R.subtract(3, 1) // => 2
```

@@ -598,7 +737,7 @@

- Returns all but the first element of `arrOrStr`
- It returns all but the first element of `arrOrStr`
```javascript
R.tail([1, 2, 3]) //=> [2, 3]
R.tail('foo') //=> 'oo'
R.tail([1, 2, 3]) // => [2, 3]
R.tail('foo') // => 'oo'
```

@@ -610,7 +749,7 @@

- Returns the first `num` elements of `arrOrStr`
- It returns the first `num` elements of `arrOrStr`.
```javascript
R.take(1, ['foo', 'bar']) //=> ['foo']
R.take(2, ['foo']) //=> 'fo'
R.take(1, ['foo', 'bar']) // => ['foo']
R.take(2, ['foo']) // => 'fo'
```

@@ -622,7 +761,7 @@

- Returns the last `num` elements of `arrOrStr`
- It returns the last `num` elements of `arrOrStr`.
```javascript
R.takeLast(1, ['foo', 'bar']) //=> ['bar']
R.takeLast(2, ['foo']) //=> 'oo'
R.takeLast(1, ['foo', 'bar']) // => ['bar']
R.takeLast(2, ['foo']) // => 'oo'
```

@@ -637,4 +776,4 @@

```javascript
R.test(/^f/, 'foo') //=> true
R.test(/^f/, 'bar') //=> false
R.test(/^f/, 'foo') // => true
R.test(/^f/, 'bar') // => false
```

@@ -647,3 +786,3 @@

```javascript
R.toLower('FOO') //=> 'foo'
R.toLower('FOO') // => 'foo'
```

@@ -656,3 +795,3 @@

```javascript
R.toUpper('foo') //=> 'FOO'
R.toUpper('foo') // => 'FOO'
```

@@ -664,3 +803,3 @@

```javascript
R.trim(' foo ') //=> 'foo'
R.trim(' foo ') // => 'foo'
```

@@ -673,11 +812,11 @@

```javascript
R.type(() => {}) //=> "Function"
R.type(async () => {}) //=> "Async"
R.type([]) //=> "Array"
R.type({}) //=> "Object"
R.type('foo') //=> "String"
R.type(1) //=> "Number"
R.type(true) //=> "Boolean"
R.type(null) //=> "Null"
R.type(/[A-z]/) //=> "RegExp"
R.type(() => {}) // => "Function"
R.type(async () => {}) // => "Async"
R.type([]) // => "Array"
R.type({}) // => "Object"
R.type('foo') // => "String"
R.type(1) // => "Number"
R.type(true) // => "Boolean"
R.type(null) // => "Null"
R.type(/[A-z]/) // => "RegExp"

@@ -689,3 +828,3 @@ const delay = ms => new Promise(resolve => {

})
R.type(delay) //=> "Promise"
R.type(delay) // => "Promise"
```

@@ -697,7 +836,7 @@

- Returns a new array containing only one copy of each element in `arr`
It returns a new array containing only one copy of each element in `arr`.
```javascript
R.uniq([1, 1, 2, 1]) //=> [1, 2]
R.uniq([1, '1']) //=> [1, '1']
R.uniq([1, 1, 2, 1]) // => [1, 2]
R.uniq([1, '1']) // => [1, '1']
```

@@ -709,7 +848,7 @@

- Returns a new copy of the `arr` with the element at `i` index
replaced with `replaceValue`
It returns a new copy of the `arr` with the element at `i` index
replaced with `replaceValue`.
```javascript
R.update(0, "foo", ['bar', 'baz']) //=> ['foo', baz]
R.update(0, "foo", ['bar', 'baz']) // => ['foo', baz]
```

@@ -721,8 +860,50 @@

- Returns array with of all values in `obj`
It returns array with of all values in `obj`.
```javascript
R.values({a: 1, b: 2}) //=> [1, 2]
R.values({a: 1, b: 2}) // => [1, 2]
```
#### T
`R.T() // => true`
---
## Lazy API
The following methods are included as it costs next to nothing to add them.
Note that the following list of methods are not part of `Ramda` API.
---
#### includes
> includes(x: any, arrOrStr: Array|String): Boolean
```
R.includes(1, [1, 2]) // => true
R.includes('oo', 'foo') // => true
R.includes('z', 'foo') // => false
```
#### padEnd
> padEnd(x: Number, str: String): String
`R.padEnd(3, 'foo') // => 'foo '`
#### padStart
> padStart(x: Number, str: String): String
`R.padStart(3, 'foo') // => ' foo'`
#### toString
`R.toString([1, 2]) // => '1,2'`
---
## Benchmark

@@ -742,7 +923,10 @@

- 0.8.3 Add `R.always`, `R.T` and `R.F`
- 0.8.2 Add `concat`, `padStart`, `padEnd`, `lastIndexOf`, `toString`, `reverse`, `endsWith` and `startsWith` methods
- 0.8.1 Add `R.ifElse`
- 0.8.0 Add `R.not`, `R.includes` | Take string as condition for `R.pick` and `R.omit`
- 0.7.6 Fix incorrect implementation of `R.values`
- 0.7.5 Fix incorrect implementation of `R.omit`
- 0.7.4 [issue #13](https://github.com/selfrefactor/rambda/issues/13) - Fix `R.curry`, which used to return incorrectly `function` when called with more arguments
- 0.7.3 Close [issue #9](https://github.com/selfrefactor/rambda/issues/9) - Compile to `es2015`; also [PR #10](https://github.com/selfrefactor/rambda/pull/10) - add `R.addIndex` to the API
- 0.7.4 [issue #13](https://github.com/selfrefactor/rambda/issues/13) - Fix `R.curry`, which used to return incorrectly `function` when called with more arguments
- 0.7.3 Close [issue #9](https://github.com/selfrefactor/rambda/issues/9) - Compile to `es2015`; Approve [PR #10](https://github.com/selfrefactor/rambda/pull/10) - add `R.addIndex` to the API
- 0.7.2 Add `Promise` support for `R.type`

@@ -759,3 +943,3 @@ - 0.7.1 Close [issue #7](https://github.com/selfrefactor/rambda/issues/7) - add `R.reduce` to the API

I give you example steps of the `PR` process.
I give you example steps of the `PR` process.

@@ -780,3 +964,3 @@ > Create a method file in `modules` folder.

if(arrOrStr === undefined){
return holder => endsWith(x, arrOrStr)
return arrOrStrHolder => endsWith(x, arrOrStrHolder)
}

@@ -788,3 +972,3 @@ return arrOrStr.endsWith(x)

Or we can use `R.curry`, which is not as performant as the example above.
Or we can also use `R.curry`, but it is not as performant as the example above.

@@ -812,3 +996,3 @@ ```

> Write your test cases
> Write your test cases

@@ -833,4 +1017,2 @@ Create file `endsWith.js` in folder `__tests__`

We have two new files and for linting them we must run:
`npm run lint modules/endsWith.js`

@@ -842,3 +1024,3 @@

Expect response within the next 2 days.
Expect response within 2 days.

@@ -845,0 +1027,0 @@ ## Additional info

@@ -1,1 +0,1250 @@

module.exports=function(c){var d={};function __webpack_require__(e){if(d[e]){return d[e].exports;}var g=d[e]={i:e,l:!1,exports:{}};c[e].call(g.exports,g,g.exports,__webpack_require__);g.l=!0;return g.exports;}__webpack_require__.m=c;__webpack_require__.c=d;__webpack_require__.i=function(h){return h;};__webpack_require__.d=function(j,k,l){if(!__webpack_require__.o(j,k)){Object.defineProperty(j,k,{configurable:!1,enumerable:!0,get:l});}};__webpack_require__.n=function(m){var n=m&&m.__esModule?function getDefault(){return m['default'];}:function getModuleExports(){return m;};__webpack_require__.d(n,'a',n);return n;};__webpack_require__.o=function(q,r){return Object.prototype.hasOwnProperty.call(q,r);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=57);}([function(s,t,u){"use strict";function curryTwo(v){return function(x,y){if(y===void 0){return function(w){return v(x,w);};}return v(x,y);};}s.exports=curryTwo;},function(A,B,C){"use strict";function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}var D=a.toString();if(D.startsWith("async")){return"Async";}else if(D==="[object Promise]"){return"Promise";}else if(D.includes("function")||D.includes("=>")){return"Function";}return"Object";}A.exports=type;},function(E,F,G){"use strict";var H=G(0);function curryThree(I){return function(x,y,z){if(y===void 0){var helper=function helper(J,K){return I(x,J,K);};return H(helper);}else if(z===void 0){return function(L){return I(x,y,L);};}return I(x,y,z);};}E.exports=curryThree;},function(M,N,O){"use strict";function baseSlice(P,Q,R){var S=-1,T=P.length;R=R>T?T:R;if(R<0){R+=T;}T=Q>R?0:R-Q>>>0;Q>>>=0;var U=Array(T);while(++S<T){U[S]=P[S+Q];}return U;}M.exports=baseSlice;},function(V,W,X){"use strict";var Y=X(7),Z=X(0);function contains(a1,b1){var c1=-1,d1=!1;while(++c1<b1.length&&!d1){if(Y(b1[c1],a1)){d1=!0;}}return d1;}V.exports=Z(contains);},function(e1,f1,g1){"use strict";function _toConsumableArray(h1){if(Array.isArray(h1)){for(var i=0,i1=Array(h1.length);i<h1.length;i++){i1[i]=h1[i];}return i1;}else{return Array.from(h1);}}function curry(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return function(){for(var j1=arguments.length,p=Array(j1),k1=0;k1<j1;k1++){p[k1]=arguments[k1];}return function(o){return o.length>=f.length?f.apply(void 0,_toConsumableArray(o)):curry(f,o);}([].concat(_toConsumableArray(a),p));};}e1.exports=curry;},function(l1,m1,n1){"use strict";var o1=n1(0);function drop(p1,a){return a.slice(p1);}l1.exports=o1(drop);},function(q1,r1,s1){"use strict";var t1=s1(0),u1=s1(1);function equals(a,b){if(a===b){return!0;}var v1=u1(a);if(v1!==u1(b)){return!1;}if(v1==="Array"){var w1=Array.from(a),x1=Array.from(b);return w1.sort().toString()===x1.sort().toString();}if(v1==="Object"){var y1=Object.keys(a);if(y1.length===Object.keys(b).length){if(y1.length===0){return!0;}var z1=!0;y1.map(function(A1){if(z1){var B1=u1(a[A1]),C1=u1(b[A1]);if(B1===C1){if(B1==="Object"){if(Object.keys(a[A1]).length===Object.keys(b[A1]).length){if(Object.keys(a[A1]).length!==0){if(!equals(a[A1],b[A1])){z1=!1;}}}else{z1=!1;}}else if(!equals(a[A1],b[A1])){z1=!1;}}else{z1=!1;}}});return z1;}}return!1;}q1.exports=t1(equals);},function(D1,E1,F1){"use strict";var G1=F1(0);function map(fn,I1){var J1=-1,K1=I1.length,L1=Array(K1);while(++J1<K1){L1[J1]=fn(I1[J1]);}return L1;}D1.exports=G1(map);},function(M1,N1,O1){"use strict";var P1=O1(0);function merge(Q1,R1){return Object.assign({},Q1,R1);}M1.exports=P1(merge);},function(S1,T1,U1){"use strict";function addIndex(V1){return function(fn){for(var X1=0,newFn=function newFn(){for(var Y1=arguments.length,Z1=Array(Y1),a2=0;a2<Y1;a2++){Z1[a2]=arguments[a2];}return fn.apply(null,[].concat(Z1,[X1++]));},b2=arguments.length,c2=Array(b2>1?b2-1:0),d2=1;d2<b2;d2++){c2[d2-1]=arguments[d2];}return V1.apply(null,[newFn].concat(c2));};}S1.exports=addIndex;},function(e2,f2,g2){"use strict";var h2=g2(2);function adjust(fn,j2,k2){var l2=k2.concat();return l2.map(function(m2,n2){if(n2===j2){return fn(k2[j2]);}return m2;});}e2.exports=h2(adjust);},function(o2,p2,q2){"use strict";var r2=q2(0);function any(fn,t2){var u2=0;while(u2<t2.length){if(fn(t2[u2])){return!0;}u2++;}return!1;}o2.exports=r2(any);},function(v2,w2,x2){"use strict";var y2=x2(0);function append(z2,A2){var B2=A2.concat();B2.push(z2);return B2;}v2.exports=y2(append);},function(C2,D2,E2){"use strict";var compose=function compose(){for(var F2=arguments.length,G2=Array(F2),H2=0;H2<F2;H2++){G2[H2]=arguments[H2];}return function(I2){var J2=G2.slice();while(J2.length>0){I2=J2.pop()(I2);}return I2;};};C2.exports=compose;},function(K2,L2,M2){"use strict";var N2=M2(1);function defaultTo(O2,P2){if(arguments.length===1){return function(Q2){return defaultTo(O2,Q2);};}return P2===void 0||!(N2(P2)===N2(O2))?O2:P2;}K2.exports=defaultTo;},function(R2,S2,T2){"use strict";var U2=T2(0);function dropLast(V2,a){return a.slice(0,-V2);}R2.exports=U2(dropLast);},function(W2,X2,Y2){"use strict";var Z2=Y2(0);function filter(fn,b3){var c3=-1,d3=0,e3=b3.length,f3=[];while(++c3<e3){var g3=b3[c3];if(fn(g3)){f3[d3++]=g3;}}return f3;}W2.exports=Z2(filter);},function(h3,i3,j3){"use strict";var k3=j3(0);function find(fn,m3){return m3.find(fn);}h3.exports=k3(find);},function(n3,o3,p3){"use strict";var q3=p3(0);function findIndex(fn,s3){var t3=s3.length,u3=-1;while(++u3<t3){if(fn(s3[u3])){return u3;}}return-1;}n3.exports=q3(findIndex);},function(v3,w3,x3){"use strict";function flatten(y3,z3){z3=z3===void 0?[]:z3;for(var i=0;i<y3.length;i++){if(Array.isArray(y3[i])){flatten(y3[i],z3);}else{z3.push(y3[i]);}}return z3;}v3.exports=flatten;},function(A3,B3,C3){"use strict";var D3=C3(0);function has(E3,F3){return F3[E3]!==void 0;}A3.exports=D3(has);},function(G3,H3,I3){"use strict";function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}G3.exports=head;},function(J3,K3,L3){"use strict";var M3=L3(2);function ifElse(N3,O3,P3){return function(Q3){if(N3(Q3)===!0){return O3(Q3);}return P3(Q3);};}J3.exports=M3(ifElse);},function(R3,S3,T3){"use strict";var U3=T3(0);function indexOf(V3,W3){var X3=-1,Y3=W3.length;while(++X3<Y3){if(W3[X3]===V3){return X3;}}return-1;}R3.exports=U3(indexOf);},function(Z3,a4,b4){"use strict";var c4=b4(3);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?c4(a,0,-1):[];}Z3.exports=init;},function(d4,e4,f4){"use strict";function helper(g4,x,y){if(x===void 0){return function(h4,i4){return helper(g4,h4,i4);};}else if(y===void 0){return function(j4){return helper(g4,x,j4);};}if(y[g4]!==void 0){return y[g4](x);}}d4.exports=helper;},function(k4,l4,m4){"use strict";var n4=m4(2);function mathHelper(o4,x,y){switch(o4){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}k4.exports=n4(mathHelper);},function(p4,q4,r4){"use strict";function oppositeHelper(s4,x,y){if(x===void 0){return function(t4,u4){return oppositeHelper(s4,t4,u4);};}else if(y===void 0){return function(v4){return oppositeHelper(s4,x,v4);};}if(x[s4]!==void 0){return x[s4](y);}}p4.exports=oppositeHelper;},function(w4,x4,y4){"use strict";function propHelper(z4,x){if(x===void 0){return function(A4){return propHelper(z4,A4);};}return x[z4];}w4.exports=propHelper;},function(B4,C4,D4){"use strict";function simpleHelper(E4,x){if(x===void 0){return function(F4){return simpleHelper(E4,F4);};}if(x[E4]!==void 0){return x[E4]();}}B4.exports=simpleHelper;},function(G4,H4,I4){"use strict";function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}G4.exports=last;},function(J4,K4,L4){"use strict";var M4=L4(0);function match(N4,O4){var P4=O4.match(N4);return P4===null?[]:P4;}J4.exports=M4(match);},function(Q4,R4,S4){"use strict";function not(x){return!x;}Q4.exports=not;},function(T4,U4,V4){"use strict";var W4=V4(1),X4=V4(0);function omit(Y4,Z4){if(W4(Y4)==='String'){Y4=Y4.split(',').map(function(x){return x.trim();});}var a5={};for(var b5 in Z4){if(!Y4.includes(b5)){a5[b5]=Z4[b5];}}return a5;}T4.exports=X4(omit);},function(c5,d5,e5){"use strict";var f5=e5(1),g5=e5(9);function partialCurry(fn){var i5=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(j5){if(f5(fn)==="Async"||f5(fn)==="Promise"){return new Promise(function(k5,l5){fn(g5(j5,i5)).then(k5).catch(l5);});}return fn(g5(j5,i5));};}c5.exports=partialCurry;},function(m5,n5,o5){"use strict";var p5=o5(1),q5=o5(5);function path(r5,s5){if(!(p5(s5)==="Object")){return void 0;}var t5=s5,u5=0;if(typeof r5==="string"){r5=r5.split(".");}while(u5<r5.length){if(t5===null||t5===void 0){return void 0;}t5=t5[r5[u5]];u5++;}return t5;}m5.exports=q5(path);},function(v5,w5,x5){"use strict";var y5=x5(0),z5=x5(1);function pick(A5,B5){if(z5(A5)==='String'){A5=A5.split(',').map(function(x){return x.trim();});}var C5={},D5=0;while(D5<A5.length){if(A5[D5]in B5){C5[A5[D5]]=B5[A5[D5]];}D5++;}return C5;}v5.exports=y5(pick);},function(E5,F5,G5){"use strict";var H5=G5(0),I5=G5(8);function pluck(J5,K5){var L5=[];I5(function(M5){if(!(M5[J5]===void 0)){L5.push(M5[J5]);}},K5);return L5;}E5.exports=H5(pluck);},function(N5,O5,P5){"use strict";var Q5=P5(0);function prepend(R5,S5){var T5=S5.concat();T5.unshift(R5);return T5;}N5.exports=Q5(prepend);},function(U5,V5,W5){"use strict";var X5=W5(0);function prop(Y5,Z5){return Z5[Y5];}U5.exports=X5(prop);},function(a6,b6,c6){"use strict";var d6=c6(2);function propEq(e6,f6,g6){return g6[e6]===f6;}a6.exports=d6(propEq);},function(h6,i6,j6){"use strict";function range(k6,l6){for(var m6=[],i=k6;i<l6;i++){m6.push(i);}return m6;}h6.exports=range;},function(n6,o6,p6){"use strict";var q6=p6(2);function reduce(fn,s6,t6){return t6.reduce(fn,s6);}n6.exports=q6(reduce);},function(u6,v6,w6){"use strict";var x6=w6(0);function repeat(a,y6){var z6=Array(y6);return z6.fill(a);}u6.exports=x6(repeat);},function(A6,B6,C6){"use strict";var D6=C6(2);function replace(E6,F6,G6){return G6.replace(E6,F6);}A6.exports=D6(replace);},function(H6,I6,J6){"use strict";var K6=J6(0);function sort(fn,M6){var N6=M6.concat();return N6.sort(fn);}H6.exports=K6(sort);},function(O6,P6,Q6){"use strict";function sortBy(fn,S6){if(S6===void 0){return function(T6){return sortBy(fn,T6);};}var U6=S6.concat();return U6.sort(function(a,b){var V6=fn(a),W6=fn(b);return V6<W6?-1:V6>W6?1:0;});}O6.exports=sortBy;},function(X6,Y6,Z6){"use strict";function split(a7,b7){if(b7===void 0){return function(c7){return split(a7,c7);};}return b7.split(a7);}X6.exports=split;},function(d7,e7,f7){"use strict";function splitEvery(g7,a){if(a===void 0){return function(h7){return splitEvery(g7,h7);};}g7=g7>1?g7:1;var i7=[],j7=0;while(j7<a.length){i7.push(a.slice(j7,j7+=g7));}return i7;}d7.exports=splitEvery;},function(k7,l7,m7){"use strict";var n7=m7(6);function tail(o7){return n7(1,o7);}k7.exports=tail;},function(p7,q7,r7){"use strict";var s7=r7(0),t7=r7(3);function take(u7,a){if(a===void 0){return function(v7){return take(u7,v7);};}else if(typeof a==="string"){return a.slice(0,u7);}return t7(a,0,u7);}p7.exports=s7(take);},function(w7,x7,y7){"use strict";var z7=y7(3),A7=y7(0);function takeLast(B7,a){var C7=a.length;B7=B7>C7?C7:B7;if(typeof a==="string"){return a.slice(C7-B7);}B7=C7-B7;return z7(a,B7,C7);}w7.exports=A7(takeLast);},function(D7,E7,F7){"use strict";var G7=F7(0);function test(H7,I7){return I7.search(H7)===-1?!1:!0;}D7.exports=G7(test);},function(J7,K7,L7){"use strict";var M7=L7(4);function uniq(N7){var O7=-1,P7=[];while(++O7<N7.length){var Q7=N7[O7];if(!M7(Q7,P7)){P7.push(Q7);}}return P7;}J7.exports=uniq;},function(R7,S7,T7){"use strict";function update(U7,V7,W7){if(V7===void 0){return function(X7,Y7){return update(U7,X7,Y7);};}else if(W7===void 0){return function(Z7){return update(U7,V7,Z7);};}var a8=W7.concat();return a8.fill(V7,U7,U7+1);}R7.exports=update;},function(b8,c8,d8){"use strict";function values(e8){var f8=[];for(var g8 in e8){f8.push(e8[g8]);}return f8;}b8.exports=values;},function(h8,i8,j8){"use strict";var k8=j8(26),l8=j8(27),m8=j8(28),n8=j8(29),o8=j8(30);i8.add=l8('+');i8.addIndex=j8(10);i8.adjust=j8(11);i8.any=j8(12);i8.append=j8(13);i8.compose=j8(14);i8.concat=m8("concat");i8.contains=j8(4);i8.curry=j8(5);i8.defaultTo=j8(15);i8.divide=l8('/');i8.drop=j8(6);i8.dropLast=j8(16);i8.endsWith=k8("endsWith");i8.equals=j8(7);i8.filter=j8(17);i8.find=j8(18);i8.findIndex=j8(19);i8.flatten=j8(20);i8.has=j8(21);i8.head=j8(22);i8.ifElse=j8(23);i8.includes=k8("includes");i8.indexOf=j8(24);i8.init=j8(25);i8.join=k8('join');i8.last=j8(31);i8.lastIndexOf=k8("lastIndexOf");i8.length=n8("length");i8.map=j8(8);i8.match=j8(32);i8.merge=j8(9);i8.modulo=l8('%');i8.multiply=l8('*');i8.not=j8(33);i8.omit=j8(34);i8.padEnd=k8('padEnd');i8.padStart=k8('padStart');i8.partialCurry=j8(35);i8.path=j8(36);i8.pick=j8(37);i8.pluck=j8(38);i8.prepend=j8(39);i8.prop=j8(40);i8.propEq=j8(41);i8.range=j8(42);i8.reduce=j8(43);i8.repeat=j8(44);i8.replace=j8(45);i8.reverse=o8('reverse');i8.sort=j8(46);i8.sortBy=j8(47);i8.split=j8(48);i8.splitEvery=j8(49);i8.startsWith=k8("startsWith");i8.subtract=l8('-');i8.tail=j8(50);i8.take=j8(51);i8.takeLast=j8(52);i8.test=j8(53);i8.toLower=o8("toLowerCase");i8.toString=o8('toString');i8.toUpper=o8("toUpperCase");i8.trim=o8("trim");i8.type=j8(1);i8.uniq=j8(54);i8.update=j8(55);i8.values=j8(56);}]);
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 49);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function curryTwo(fn) {
return function (x, y) {
if (y === undefined) {
return function (yHolder) {
return fn(x, yHolder);
};
}
return fn(x, y);
};
}
module.exports = curryTwo;
/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function curryThree(fn) {
return function (x, y, z) {
if (y === undefined) {
var helper = function helper(yHolder, zHolder) {
return fn(x, yHolder, zHolder);
};
return curryTwo(helper);
} else if (z === undefined) {
return function (zHolder) {
return fn(x, y, zHolder);
};
}
return fn(x, y, z);
};
}
module.exports = curryThree;
/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function type(a) {
if (a === null) {
return "Null";
} else if (Array.isArray(a)) {
return "Array";
} else if (typeof a === "boolean") {
return "Boolean";
} else if (typeof a === "number") {
return "Number";
} else if (typeof a === "string") {
return "String";
} else if (a === undefined) {
return "Undefined";
} else if (a instanceof RegExp) {
return "RegExp";
}
var asStr = a.toString();
if (asStr.startsWith("async")) {
return "Async";
} else if (asStr === "[object Promise]") {
return "Promise";
} else if (asStr.includes("function") || asStr.includes("=>")) {
return "Function";
}
return "Object";
}
module.exports = type;
/***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
// taken from the last comment of https://gist.github.com/mkuklis/5294248
function curry(f) {
var a = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
return function () {
for (var _len = arguments.length, p = Array(_len), _key = 0; _key < _len; _key++) {
p[_key] = arguments[_key];
}
return function (o) {
return o.length >= f.length ? f.apply(undefined, _toConsumableArray(o)) : curry(f, o);
}([].concat(_toConsumableArray(a), p));
};
}
module.exports = curry;
/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
var type = __webpack_require__(2);
function equals(a, b) {
if (a === b) {
return true;
}
var aType = type(a);
if (aType !== type(b)) {
return false;
}
if (aType === "Array") {
var aClone = Array.from(a);
var bClone = Array.from(b);
return aClone.sort().toString() === bClone.sort().toString();
}
if (aType === "Object") {
var aKeys = Object.keys(a);
if (aKeys.length === Object.keys(b).length) {
if (aKeys.length === 0) {
return true;
}
var flag = true;
aKeys.map(function (val) {
if (flag) {
var aValType = type(a[val]);
var bValType = type(b[val]);
if (aValType === bValType) {
if (aValType === "Object") {
if (Object.keys(a[val]).length === Object.keys(b[val]).length) {
if (Object.keys(a[val]).length !== 0) {
if (!equals(a[val], b[val])) {
flag = false;
}
}
} else {
flag = false;
}
} else if (!equals(a[val], b[val])) {
flag = false;
}
} else {
flag = false;
}
}
});
return flag;
}
}
return false;
}
module.exports = curryTwo(equals);
/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function map(fn, arr) {
var index = -1;
var length = arr.length;
var willReturn = Array(length);
while (++index < length) {
willReturn[index] = fn(arr[index]);
}
return willReturn;
}
module.exports = curryTwo(map);
/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function merge(obj, newProps) {
return Object.assign({}, obj, newProps);
}
module.exports = curryTwo(merge);
/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function addIndex(functor) {
return function (fn) {
var cnt = 0;
var newFn = function newFn() {
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
return fn.apply(null, [].concat(args, [cnt++]));
};
for (var _len = arguments.length, rest = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
rest[_key - 1] = arguments[_key];
}
return functor.apply(null, [newFn].concat(rest));
};
}
module.exports = addIndex;
/***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryThree = __webpack_require__(1);
function adjust(fn, index, arr) {
var clone = arr.concat();
return clone.map(function (val, key) {
if (key === index) {
return fn(arr[index]);
}
return val;
});
}
module.exports = curryThree(adjust);
/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function any(fn, arr) {
var counter = 0;
while (counter < arr.length) {
if (fn(arr[counter])) {
return true;
}
counter++;
}
return false;
}
module.exports = curryTwo(any);
/***/ }),
/* 10 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function append(val, arr) {
var clone = arr.concat();
clone.push(val);
return clone;
}
module.exports = curryTwo(append);
/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// Taken from https://github.com/getify/Functional-Light-JS/blob/master/ch4.md
var compose = function compose() {
for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) {
fns[_key] = arguments[_key];
}
return function (result) {
var list = fns.slice();
while (list.length > 0) {
result = list.pop()(result);
}
return result;
};
};
module.exports = compose;
/***/ }),
/* 12 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var equals = __webpack_require__(4);
var curryTwo = __webpack_require__(0);
function contains(val, arr) {
var index = -1;
var flag = false;
while (++index < arr.length && !flag) {
if (equals(arr[index], val)) {
flag = true;
}
}
return flag;
}
module.exports = curryTwo(contains);
/***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var type = __webpack_require__(2);
function defaultTo(defaultArgument, inputArgument) {
if (arguments.length === 1) {
return function (inputArgumentHolder) {
return defaultTo(defaultArgument, inputArgumentHolder);
};
}
return inputArgument === undefined || !(type(inputArgument) === type(defaultArgument)) ? defaultArgument : inputArgument;
}
module.exports = defaultTo;
/***/ }),
/* 14 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function drop(dropNumber, a) {
return a.slice(dropNumber);
}
module.exports = curryTwo(drop);
/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function dropLast(dropNumber, a) {
return a.slice(0, -dropNumber);
}
module.exports = curryTwo(dropLast);
/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function filter(fn, arr) {
var index = -1;
var resIndex = 0;
var len = arr.length;
var willReturn = [];
while (++index < len) {
var value = arr[index];
if (fn(value)) {
willReturn[resIndex++] = value;
}
}
return willReturn;
}
module.exports = curryTwo(filter);
/***/ }),
/* 17 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function find(fn, arr) {
return arr.find(fn);
}
module.exports = curryTwo(find);
/***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function findIndex(fn, arr) {
var length = arr.length;
var index = -1;
while (++index < length) {
if (fn(arr[index])) {
return index;
}
}
return -1;
}
module.exports = curryTwo(findIndex);
/***/ }),
/* 19 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function flatten(arr, willReturn) {
willReturn = willReturn === undefined ? [] : willReturn;
for (var i = 0; i < arr.length; i++) {
if (Array.isArray(arr[i])) {
flatten(arr[i], willReturn);
} else {
willReturn.push(arr[i]);
}
}
return willReturn;
}
module.exports = flatten;
/***/ }),
/* 20 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function has(prop, obj) {
return obj[prop] !== undefined;
}
module.exports = curryTwo(has);
/***/ }),
/* 21 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function head(a) {
if (typeof a === "string") {
return a[0] || "";
}
return a[0];
}
module.exports = head;
/***/ }),
/* 22 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryThree = __webpack_require__(1);
function ifElse(conditionFn, ifFn, elseFn) {
return function (input) {
if (conditionFn(input) === true) {
return ifFn(input);
}
return elseFn(input);
};
}
module.exports = curryThree(ifElse);
/***/ }),
/* 23 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function indexOf(question, arr) {
var index = -1;
var length = arr.length;
while (++index < length) {
if (arr[index] === question) {
return index;
}
}
return -1;
}
module.exports = curryTwo(indexOf);
/***/ }),
/* 24 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var baseSlice = __webpack_require__(48);
function init(a) {
if (typeof a === "string") {
return a.slice(0, -1);
}
return a.length ? baseSlice(a, 0, -1) : [];
}
module.exports = init;
/***/ }),
/* 25 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function helper(method, x, y) {
if (x === undefined) {
return function (xHolder, yHolder) {
return helper(method, xHolder, yHolder);
};
} else if (y === undefined) {
return function (yHolder) {
return helper(method, x, yHolder);
};
}
if (y[method] !== undefined) {
return y[method](x);
}
}
module.exports = helper;
/***/ }),
/* 26 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryThree = __webpack_require__(1);
function mathHelper(operation, x, y) {
switch (operation) {
case '+':
return x + y;
case '-':
return x - y;
case '/':
return x / y;
case '*':
return x * y;
case '%':
return x % y;
}
}
module.exports = curryThree(mathHelper);
/***/ }),
/* 27 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function oppositeHelper(method, x, y) {
if (x === undefined) {
return function (xHolder, yHolder) {
return oppositeHelper(method, xHolder, yHolder);
};
} else if (y === undefined) {
return function (yHolder) {
return oppositeHelper(method, x, yHolder);
};
}
if (x[method] !== undefined) {
return x[method](y);
}
}
module.exports = oppositeHelper;
/***/ }),
/* 28 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function propHelper(method, x) {
if (x === undefined) {
return function (xHolder) {
return propHelper(method, xHolder);
};
}
return x[method];
}
module.exports = propHelper;
/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function simpleHelper(method, x) {
if (x === undefined) {
return function (xHolder) {
return simpleHelper(method, xHolder);
};
}
if (x[method] !== undefined) {
return x[method]();
}
}
module.exports = simpleHelper;
/***/ }),
/* 30 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function last(a) {
if (typeof a === "string") {
return a[a.length - 1] || "";
}
return a[a.length - 1];
}
module.exports = last;
/***/ }),
/* 31 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function match(regex, str) {
var willReturn = str.match(regex);
return willReturn === null ? [] : willReturn;
}
module.exports = curryTwo(match);
/***/ }),
/* 32 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function not(x) {
return !x;
}
module.exports = not;
/***/ }),
/* 33 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var type = __webpack_require__(2);
var curryTwo = __webpack_require__(0);
function omit(keys, obj) {
if (type(keys) === 'String') {
keys = keys.split(',').map(function (x) {
return x.trim();
});
}
var willReturn = {};
for (var key in obj) {
if (!keys.includes(key)) {
willReturn[key] = obj[key];
}
}
return willReturn;
}
module.exports = curryTwo(omit);
/***/ }),
/* 34 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var type = __webpack_require__(2);
var merge = __webpack_require__(6);
function partialCurry(fn) {
var inputArguments = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
return function (inputArgumentsHolder) {
if (type(fn) === "Async" || type(fn) === "Promise") {
return new Promise(function (resolve, reject) {
fn(merge(inputArgumentsHolder, inputArguments)).then(resolve).catch(reject);
});
}
return fn(merge(inputArgumentsHolder, inputArguments));
};
}
module.exports = partialCurry;
/***/ }),
/* 35 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var type = __webpack_require__(2);
var curry = __webpack_require__(3);
function path(pathArr, obj) {
if (!(type(obj) === "Object")) {
return undefined;
}
var holder = obj;
var counter = 0;
if (typeof pathArr === "string") {
pathArr = pathArr.split(".");
}
while (counter < pathArr.length) {
if (holder === null || holder === undefined) {
return undefined;
}
holder = holder[pathArr[counter]];
counter++;
}
return holder;
}
module.exports = curry(path);
/***/ }),
/* 36 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
var type = __webpack_require__(2);
function pick(keys, obj) {
if (type(keys) === 'String') {
keys = keys.split(',').map(function (x) {
return x.trim();
});
}
var willReturn = {};
var counter = 0;
while (counter < keys.length) {
if (keys[counter] in obj) {
willReturn[keys[counter]] = obj[keys[counter]];
}
counter++;
}
return willReturn;
}
module.exports = curryTwo(pick);
/***/ }),
/* 37 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
var map = __webpack_require__(5);
function pluck(keyToPluck, arr) {
var willReturn = [];
map(function (val) {
if (!(val[keyToPluck] === undefined)) {
willReturn.push(val[keyToPluck]);
}
}, arr);
return willReturn;
}
module.exports = curryTwo(pluck);
/***/ }),
/* 38 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function prepend(val, arr) {
var clone = arr.concat();
clone.unshift(val);
return clone;
}
module.exports = curryTwo(prepend);
/***/ }),
/* 39 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function prop(key, obj) {
return obj[key];
}
module.exports = curryTwo(prop);
/***/ }),
/* 40 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryThree = __webpack_require__(1);
function propEq(key, val, obj) {
return obj[key] === val;
}
module.exports = curryThree(propEq);
/***/ }),
/* 41 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function range(start, end) {
var willReturn = [];
for (var i = start; i < end; i++) {
willReturn.push(i);
}
return willReturn;
}
module.exports = range;
/***/ }),
/* 42 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryThree = __webpack_require__(1);
function reduce(fn, initialValue, arr) {
return arr.reduce(fn, initialValue);
}
module.exports = curryThree(reduce);
/***/ }),
/* 43 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function repeat(a, num) {
var willReturn = Array(num);
return willReturn.fill(a);
}
module.exports = curryTwo(repeat);
/***/ }),
/* 44 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryThree = __webpack_require__(1);
function replace(regex, replacer, str) {
return str.replace(regex, replacer);
}
module.exports = curryThree(replace);
/***/ }),
/* 45 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function sort(fn, arr) {
var arrClone = arr.concat();
return arrClone.sort(fn);
}
module.exports = curryTwo(sort);
/***/ }),
/* 46 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function sortBy(fn, arr) {
if (arr === undefined) {
return function (holder) {
return sortBy(fn, holder);
};
}
var arrClone = arr.concat();
return arrClone.sort(function (a, b) {
var fnA = fn(a);
var fnB = fn(b);
return fnA < fnB ? -1 : fnA > fnB ? 1 : 0;
});
}
module.exports = sortBy;
/***/ }),
/* 47 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function split(glue, str) {
if (str === undefined) {
return function (holder) {
return split(glue, holder);
};
}
return str.split(glue);
}
module.exports = split;
/***/ }),
/* 48 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function baseSlice(array, start, end) {
var index = -1;
var length = array.length;
end = end > length ? length : end;
if (end < 0) {
end += length;
}
length = start > end ? 0 : end - start >>> 0;
start >>>= 0;
var result = Array(length);
while (++index < length) {
result[index] = array[index + start];
}
return result;
}
module.exports = baseSlice;
/***/ }),
/* 49 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var helper = __webpack_require__(25);
var mathHelper = __webpack_require__(26);
var oppositeHelper = __webpack_require__(27);
var propHelper = __webpack_require__(28);
var simpleHelper = __webpack_require__(29);
exports.add = mathHelper('+');
exports.addIndex = __webpack_require__(7);
exports.adjust = __webpack_require__(8);
exports.always = function (x) {
return x;
};
exports.any = __webpack_require__(9);
exports.append = __webpack_require__(10);
exports.compose = __webpack_require__(11);
exports.concat = oppositeHelper("concat");
exports.contains = __webpack_require__(12);
exports.curry = __webpack_require__(3);
exports.defaultTo = __webpack_require__(13);
exports.divide = mathHelper('/');
exports.drop = __webpack_require__(14);
exports.dropLast = __webpack_require__(15);
exports.endsWith = helper("endsWith");
exports.equals = __webpack_require__(4);
exports.F = function () {
return false;
};
exports.filter = __webpack_require__(16);
exports.find = __webpack_require__(17);
exports.findIndex = __webpack_require__(18);
exports.flatten = __webpack_require__(19);
exports.has = __webpack_require__(20);
exports.head = __webpack_require__(21);
exports.ifElse = __webpack_require__(22);
exports.includes = helper("includes");
exports.indexOf = __webpack_require__(23);
exports.init = __webpack_require__(24);
exports.join = helper('join');
exports.last = __webpack_require__(30);
exports.lastIndexOf = helper("lastIndexOf");
exports.length = propHelper("length");
exports.map = __webpack_require__(5);
exports.match = __webpack_require__(31);
exports.merge = __webpack_require__(6);
exports.modulo = mathHelper('%');
exports.multiply = mathHelper('*');
exports.not = __webpack_require__(32);
exports.omit = __webpack_require__(33);
exports.padEnd = helper('padEnd');
exports.padStart = helper('padStart');
exports.partialCurry = __webpack_require__(34);
exports.path = __webpack_require__(35);
exports.pick = __webpack_require__(36);
exports.pluck = __webpack_require__(37);
exports.prepend = __webpack_require__(38);
exports.prop = __webpack_require__(39);
exports.propEq = __webpack_require__(40);
exports.range = __webpack_require__(41);
exports.reduce = __webpack_require__(42);
exports.repeat = __webpack_require__(43);
exports.replace = __webpack_require__(44);
exports.reverse = simpleHelper('reverse');
exports.sort = __webpack_require__(45);
exports.sortBy = __webpack_require__(46);
exports.split = __webpack_require__(47);
exports.T = function () {
return true;
};
/***/ })
/******/ ]);
{
"name": "rambda",
"version": "0.8.2",
"version": "0.8.3",
"description": "Lightweight alternative to Ramda",
"main": "index.js",
"scripts": {
"build": "run-s browser-build browser-minify node-build node-minify",
"build": "run-s browser-build browser-minify node-build",
"test": "jest",
"docs": "docsify init ./docs",
"lint": "node files/lint",

@@ -10,0 +11,0 @@ "dev": "jest __tests__/lazy/concat.js",

@@ -10,2 +10,3 @@ const helper = require('./modules/internal/helper')

exports.adjust = require("./modules/adjust")
exports.always = x => x
exports.any = require("./modules/any")

@@ -23,2 +24,3 @@ exports.append = require("./modules/append")

exports.equals = require("./modules/equals")
exports.F = () => false
exports.filter = require("./modules/filter")

@@ -62,16 +64,2 @@ exports.find = require("./modules/find")

exports.split = require("./modules/split")
exports.splitEvery = require("./modules/splitEvery")
exports.startsWith = helper("startsWith")
exports.subtract = mathHelper('-')
exports.tail = require("./modules/tail")
exports.take = require("./modules/take")
exports.takeLast = require("./modules/takeLast")
exports.test = require("./modules/testFn")
exports.toLower = simpleHelper("toLowerCase")
exports.toString = simpleHelper('toString')
exports.toUpper = simpleHelper("toUpperCase")
exports.trim = simpleHelper("trim")
exports.type = require("./modules/type")
exports.uniq = require("./modules/uniq")
exports.update = require("./modules/update")
exports.values = require("./modules/values")
exports.T = () => true

@@ -33,3 +33,3 @@ [![Build Status](https://img.shields.io/travis/selfrefactor/rambda.svg)](https://travis-ci.org/selfrefactor/rambda)

```
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.8.2/webVersion.js
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.8.3/webVersion.js
```

@@ -97,2 +97,9 @@

#### always
```
const fn = R.always('foo')
fn() // => 'foo'
```
#### any

@@ -239,2 +246,6 @@

#### F
`R.F() // => false`
#### filter

@@ -435,3 +446,3 @@

# not
#### not

@@ -796,2 +807,6 @@ > not(x: any): Boolean

```
#### T
`R.T() // => true`
---

@@ -850,2 +865,3 @@

- 0.8.3 Add `R.always`, `R.T` and `R.F`
- 0.8.2 Add `concat`, `padStart`, `padEnd`, `lastIndexOf`, `toString`, `reverse`, `endsWith` and `startsWith` methods

@@ -852,0 +868,0 @@ - 0.8.1 Add `R.ifElse`

@@ -1,1 +0,1 @@

(function webpackUniversalModuleDefinition(c,d){if(typeof exports==='object'&&typeof module==='object')module.exports=d();else if(typeof define==='function'&&define.amd)define([],d);else{var a=d();for(var i in a)(typeof exports==='object'?exports:c)[i]=a[i];}})(this,function(){return function(e){var g={};function __webpack_require__(h){if(g[h]){return g[h].exports;}var j=g[h]={i:h,l:!1,exports:{}};e[h].call(j.exports,j,j.exports,__webpack_require__);j.l=!0;return j.exports;}__webpack_require__.m=e;__webpack_require__.c=g;__webpack_require__.i=function(k){return k;};__webpack_require__.d=function(l,m,n){if(!__webpack_require__.o(l,m)){Object.defineProperty(l,m,{configurable:!1,enumerable:!0,get:n});}};__webpack_require__.n=function(q){var r=q&&q.__esModule?function getDefault(){return q['default'];}:function getModuleExports(){return q;};__webpack_require__.d(r,'a',r);return r;};__webpack_require__.o=function(s,t){return Object.prototype.hasOwnProperty.call(s,t);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=11);}([function(u,v){function curryTwo(w){return(x,y)=>{if(y===void 0){return A=>w(x,A);}return w(x,y);};}u.exports=curryTwo;},function(B,C){function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}const D=a.toString();if(D.startsWith("async")){return"Async";}else if(D==="[object Promise]"){return"Promise";}else if(D.includes("function")||D.includes("=>")){return"Function";}return"Object";}B.exports=type;},function(E,F,G){const H=G(0);function curryThree(I){return(x,y,z)=>{if(y===void 0){const helper=(J,K)=>{return I(x,J,K);};return H(helper);}else if(z===void 0){return L=>I(x,y,L);}return I(x,y,z);};}E.exports=curryThree;},function(M,N){function baseSlice(O,P,Q){let R=-1,S=O.length;Q=Q>S?S:Q;if(Q<0){Q+=S;}S=P>Q?0:Q-P>>>0;P>>>=0;const T=Array(S);while(++R<S){T[R]=O[R+P];}return T;}M.exports=baseSlice;},function(U,V,W){const X=W(7),Y=W(0);function contains(Z,a1){let b1=-1,c1=!1;while(++b1<a1.length&&!c1){if(X(a1[b1],Z)){c1=!0;}}return c1;}U.exports=Y(contains);},function(d1,e1){function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}d1.exports=curry;},function(f1,g1,h1){const i1=h1(0);function drop(j1,a){return a.slice(j1);}f1.exports=i1(drop);},function(k1,l1,m1){const n1=m1(0),o1=m1(1);function equals(a,b){if(a===b){return!0;}const p1=o1(a);if(p1!==o1(b)){return!1;}if(p1==="Array"){const q1=Array.from(a),r1=Array.from(b);return q1.sort().toString()===r1.sort().toString();}if(p1==="Object"){const s1=Object.keys(a);if(s1.length===Object.keys(b).length){if(s1.length===0){return!0;}let t1=!0;s1.map(u1=>{if(t1){const v1=o1(a[u1]),w1=o1(b[u1]);if(v1===w1){if(v1==="Object"){if(Object.keys(a[u1]).length===Object.keys(b[u1]).length){if(Object.keys(a[u1]).length!==0){if(!equals(a[u1],b[u1])){t1=!1;}}}else{t1=!1;}}else if(!equals(a[u1],b[u1])){t1=!1;}}else{t1=!1;}}});return t1;}}return!1;}k1.exports=n1(equals);},function(x1,y1,z1){const A1=z1(0);function map(fn,C1){let D1=-1;const E1=C1.length,F1=Array(E1);while(++D1<E1){F1[D1]=fn(C1[D1]);}return F1;}x1.exports=A1(map);},function(G1,H1,I1){const J1=I1(0);function merge(K1,L1){return Object.assign({},K1,L1);}G1.exports=J1(merge);},function(M1,N1,O1){const P1=O1(28),Q1=O1(29),R1=O1(30),S1=O1(31),T1=O1(32);N1.add=Q1('+');N1.addIndex=O1(12);N1.adjust=O1(13);N1.any=O1(14);N1.append=O1(15);N1.compose=O1(16);N1.concat=R1("concat");N1.contains=O1(4);N1.curry=O1(5);N1.defaultTo=O1(17);N1.divide=Q1('/');N1.drop=O1(6);N1.dropLast=O1(18);N1.endsWith=P1("endsWith");N1.equals=O1(7);N1.filter=O1(19);N1.find=O1(20);N1.findIndex=O1(21);N1.flatten=O1(22);N1.has=O1(23);N1.head=O1(24);N1.ifElse=O1(25);N1.includes=P1("includes");N1.indexOf=O1(26);N1.init=O1(27);N1.join=P1('join');N1.last=O1(33);N1.lastIndexOf=P1("lastIndexOf");N1.length=S1("length");N1.map=O1(8);N1.match=O1(34);N1.merge=O1(9);N1.modulo=Q1('%');N1.multiply=Q1('*');N1.not=O1(35);N1.omit=O1(36);N1.padEnd=P1('padEnd');N1.padStart=P1('padStart');N1.partialCurry=O1(37);N1.path=O1(38);N1.pick=O1(39);N1.pluck=O1(40);N1.prepend=O1(41);N1.prop=O1(42);N1.propEq=O1(43);N1.range=O1(44);N1.reduce=O1(45);N1.repeat=O1(46);N1.replace=O1(47);N1.reverse=T1('reverse');N1.sort=O1(48);N1.sortBy=O1(49);N1.split=O1(50);N1.splitEvery=O1(51);N1.startsWith=P1("startsWith");N1.subtract=Q1('-');N1.tail=O1(52);N1.take=O1(53);N1.takeLast=O1(54);N1.test=O1(55);N1.toLower=T1("toLowerCase");N1.toString=T1('toString');N1.toUpper=T1("toUpperCase");N1.trim=T1("trim");N1.type=O1(1);N1.uniq=O1(56);N1.update=O1(57);N1.values=O1(58);},function(U1,V1,W1){const X1=W1(10);U1.exports.R=X1;},function(Y1,Z1){function addIndex(a2){return function(fn,...rest){let c2=0;const newFn=(...args)=>fn.apply(null,[...args,c2++]);return a2.apply(null,[newFn,...rest]);};}Y1.exports=addIndex;},function(d2,e2,f2){const g2=f2(2);function adjust(fn,i2,j2){const k2=j2.concat();return k2.map((l2,m2)=>{if(m2===i2){return fn(j2[i2]);}return l2;});}d2.exports=g2(adjust);},function(n2,o2,p2){const q2=p2(0);function any(fn,s2){let t2=0;while(t2<s2.length){if(fn(s2[t2])){return!0;}t2++;}return!1;}n2.exports=q2(any);},function(u2,v2,w2){const x2=w2(0);function append(y2,z2){const A2=z2.concat();A2.push(y2);return A2;}u2.exports=x2(append);},function(B2,C2){const compose=(...fns)=>D2=>{let E2=fns.slice();while(E2.length>0){D2=E2.pop()(D2);}return D2;};B2.exports=compose;},function(F2,G2,H2){const I2=H2(1);function defaultTo(J2,K2){if(arguments.length===1){return L2=>defaultTo(J2,L2);}return K2===void 0||!(I2(K2)===I2(J2))?J2:K2;}F2.exports=defaultTo;},function(M2,N2,O2){const P2=O2(0);function dropLast(Q2,a){return a.slice(0,-Q2);}M2.exports=P2(dropLast);},function(R2,S2,T2){const U2=T2(0);function filter(fn,W2){let X2=-1,Y2=0;const Z2=W2.length,a3=[];while(++X2<Z2){const b3=W2[X2];if(fn(b3)){a3[Y2++]=b3;}}return a3;}R2.exports=U2(filter);},function(c3,d3,e3){const f3=e3(0);function find(fn,h3){return h3.find(fn);}c3.exports=f3(find);},function(i3,j3,k3){const l3=k3(0);function findIndex(fn,n3){const o3=n3.length;let p3=-1;while(++p3<o3){if(fn(n3[p3])){return p3;}}return-1;}i3.exports=l3(findIndex);},function(q3,r3){function flatten(s3,t3){t3=t3===void 0?[]:t3;for(let i=0;i<s3.length;i++){if(Array.isArray(s3[i])){flatten(s3[i],t3);}else{t3.push(s3[i]);}}return t3;}q3.exports=flatten;},function(u3,v3,w3){const x3=w3(0);function has(y3,z3){return z3[y3]!==void 0;}u3.exports=x3(has);},function(A3,B3){function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}A3.exports=head;},function(C3,D3,E3){const F3=E3(2);function ifElse(G3,H3,I3){return J3=>{if(G3(J3)===!0){return H3(J3);}return I3(J3);};}C3.exports=F3(ifElse);},function(K3,L3,M3){const N3=M3(0);function indexOf(O3,P3){let Q3=-1;const R3=P3.length;while(++Q3<R3){if(P3[Q3]===O3){return Q3;}}return-1;}K3.exports=N3(indexOf);},function(S3,T3,U3){const V3=U3(3);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?V3(a,0,-1):[];}S3.exports=init;},function(W3,X3){function helper(Y3,x,y){if(x===void 0){return(Z3,a4)=>helper(Y3,Z3,a4);}else if(y===void 0){return b4=>helper(Y3,x,b4);}if(y[Y3]!==void 0){return y[Y3](x);}}W3.exports=helper;},function(c4,d4,e4){const f4=e4(2);function mathHelper(g4,x,y){switch(g4){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}c4.exports=f4(mathHelper);},function(h4,i4){function oppositeHelper(j4,x,y){if(x===void 0){return(k4,l4)=>oppositeHelper(j4,k4,l4);}else if(y===void 0){return m4=>oppositeHelper(j4,x,m4);}if(x[j4]!==void 0){return x[j4](y);}}h4.exports=oppositeHelper;},function(n4,o4){function propHelper(p4,x){if(x===void 0){return q4=>propHelper(p4,q4);}return x[p4];}n4.exports=propHelper;},function(r4,s4){function simpleHelper(t4,x){if(x===void 0){return u4=>simpleHelper(t4,u4);}if(x[t4]!==void 0){return x[t4]();}}r4.exports=simpleHelper;},function(v4,w4){function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}v4.exports=last;},function(x4,y4,z4){const A4=z4(0);function match(B4,C4){const D4=C4.match(B4);return D4===null?[]:D4;}x4.exports=A4(match);},function(E4,F4){function not(x){return!x;}E4.exports=not;},function(G4,H4,I4){const J4=I4(1),K4=I4(0);function omit(L4,M4){if(J4(L4)==='String'){L4=L4.split(',').map(x=>x.trim());}const N4={};for(const O4 in M4){if(!L4.includes(O4)){N4[O4]=M4[O4];}}return N4;}G4.exports=K4(omit);},function(P4,Q4,R4){const S4=R4(1),T4=R4(9);function partialCurry(fn,V4={}){return W4=>{if(S4(fn)==="Async"||S4(fn)==="Promise"){return new Promise((X4,Y4)=>{fn(T4(W4,V4)).then(X4).catch(Y4);});}return fn(T4(W4,V4));};}P4.exports=partialCurry;},function(Z4,a5,b5){const c5=b5(1),d5=b5(5);function path(e5,f5){if(!(c5(f5)==="Object")){return void 0;}let g5=f5,h5=0;if(typeof e5==="string"){e5=e5.split(".");}while(h5<e5.length){if(g5===null||g5===void 0){return void 0;}g5=g5[e5[h5]];h5++;}return g5;}Z4.exports=d5(path);},function(i5,j5,k5){const l5=k5(0),m5=k5(1);function pick(n5,o5){if(m5(n5)==='String'){n5=n5.split(',').map(x=>x.trim());}const p5={};let q5=0;while(q5<n5.length){if(n5[q5]in o5){p5[n5[q5]]=o5[n5[q5]];}q5++;}return p5;}i5.exports=l5(pick);},function(r5,s5,t5){const u5=t5(0),v5=t5(8);function pluck(w5,x5){const y5=[];v5(z5=>{if(!(z5[w5]===void 0)){y5.push(z5[w5]);}},x5);return y5;}r5.exports=u5(pluck);},function(A5,B5,C5){const D5=C5(0);function prepend(E5,F5){const G5=F5.concat();G5.unshift(E5);return G5;}A5.exports=D5(prepend);},function(H5,I5,J5){const K5=J5(0);function prop(L5,M5){return M5[L5];}H5.exports=K5(prop);},function(N5,O5,P5){const Q5=P5(2);function propEq(R5,S5,T5){return T5[R5]===S5;}N5.exports=Q5(propEq);},function(U5,V5){function range(W5,X5){const Y5=[];for(let i=W5;i<X5;i++){Y5.push(i);}return Y5;}U5.exports=range;},function(Z5,a6,b6){const c6=b6(2);function reduce(fn,e6,f6){return f6.reduce(fn,e6);}Z5.exports=c6(reduce);},function(g6,h6,i6){const j6=i6(0);function repeat(a,k6){const l6=Array(k6);return l6.fill(a);}g6.exports=j6(repeat);},function(m6,n6,o6){const p6=o6(2);function replace(q6,r6,s6){return s6.replace(q6,r6);}m6.exports=p6(replace);},function(t6,u6,v6){const w6=v6(0);function sort(fn,y6){const z6=y6.concat();return z6.sort(fn);}t6.exports=w6(sort);},function(A6,B6){function sortBy(fn,D6){if(D6===void 0){return E6=>sortBy(fn,E6);}const F6=D6.concat();return F6.sort((a,b)=>{const G6=fn(a),H6=fn(b);return G6<H6?-1:G6>H6?1:0;});}A6.exports=sortBy;},function(I6,J6){function split(K6,L6){if(L6===void 0){return M6=>split(K6,M6);}return L6.split(K6);}I6.exports=split;},function(N6,O6){function splitEvery(P6,a){if(a===void 0){return Q6=>splitEvery(P6,Q6);}P6=P6>1?P6:1;const R6=[];let S6=0;while(S6<a.length){R6.push(a.slice(S6,S6+=P6));}return R6;}N6.exports=splitEvery;},function(T6,U6,V6){const W6=V6(6);function tail(X6){return W6(1,X6);}T6.exports=tail;},function(Y6,Z6,a7){const b7=a7(0),c7=a7(3);function take(d7,a){if(a===void 0){return e7=>take(d7,e7);}else if(typeof a==="string"){return a.slice(0,d7);}return c7(a,0,d7);}Y6.exports=b7(take);},function(f7,g7,h7){const i7=h7(3),j7=h7(0);function takeLast(k7,a){const l7=a.length;k7=k7>l7?l7:k7;if(typeof a==="string"){return a.slice(l7-k7);}k7=l7-k7;return i7(a,k7,l7);}f7.exports=j7(takeLast);},function(m7,n7,o7){const p7=o7(0);function test(q7,r7){return r7.search(q7)===-1?!1:!0;}m7.exports=p7(test);},function(s7,t7,u7){const v7=u7(4);function uniq(w7){let x7=-1;const y7=[];while(++x7<w7.length){const z7=w7[x7];if(!v7(z7,y7)){y7.push(z7);}}return y7;}s7.exports=uniq;},function(A7,B7){function update(C7,D7,E7){if(D7===void 0){return(F7,G7)=>update(C7,F7,G7);}else if(E7===void 0){return H7=>update(C7,D7,H7);}const I7=E7.concat();return I7.fill(D7,C7,C7+1);}A7.exports=update;},function(J7,K7){function values(L7){const M7=[];for(const N7 in L7){M7.push(L7[N7]);}return M7;}J7.exports=values;}]);});
(function webpackUniversalModuleDefinition(c,d){if(typeof exports==='object'&&typeof module==='object')module.exports=d();else if(typeof define==='function'&&define.amd)define([],d);else{var a=d();for(var i in a)(typeof exports==='object'?exports:c)[i]=a[i];}})(this,function(){return function(e){var g={};function __webpack_require__(h){if(g[h]){return g[h].exports;}var j=g[h]={i:h,l:!1,exports:{}};e[h].call(j.exports,j,j.exports,__webpack_require__);j.l=!0;return j.exports;}__webpack_require__.m=e;__webpack_require__.c=g;__webpack_require__.i=function(k){return k;};__webpack_require__.d=function(l,m,n){if(!__webpack_require__.o(l,m)){Object.defineProperty(l,m,{configurable:!1,enumerable:!0,get:n});}};__webpack_require__.n=function(q){var r=q&&q.__esModule?function getDefault(){return q['default'];}:function getModuleExports(){return q;};__webpack_require__.d(r,'a',r);return r;};__webpack_require__.o=function(s,t){return Object.prototype.hasOwnProperty.call(s,t);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=8);}([function(u,v){function curryTwo(w){return(x,y)=>{if(y===void 0){return A=>w(x,A);}return w(x,y);};}u.exports=curryTwo;},function(B,C,D){const E=D(0);function curryThree(F){return(x,y,z)=>{if(y===void 0){const helper=(G,H)=>{return F(x,G,H);};return E(helper);}else if(z===void 0){return I=>F(x,y,I);}return F(x,y,z);};}B.exports=curryThree;},function(J,K){function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}const L=a.toString();if(L.startsWith("async")){return"Async";}else if(L==="[object Promise]"){return"Promise";}else if(L.includes("function")||L.includes("=>")){return"Function";}return"Object";}J.exports=type;},function(M,N){function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}M.exports=curry;},function(O,P,Q){const R=Q(0),S=Q(2);function equals(a,b){if(a===b){return!0;}const T=S(a);if(T!==S(b)){return!1;}if(T==="Array"){const U=Array.from(a),V=Array.from(b);return U.sort().toString()===V.sort().toString();}if(T==="Object"){const W=Object.keys(a);if(W.length===Object.keys(b).length){if(W.length===0){return!0;}let X=!0;W.map(Y=>{if(X){const Z=S(a[Y]),a1=S(b[Y]);if(Z===a1){if(Z==="Object"){if(Object.keys(a[Y]).length===Object.keys(b[Y]).length){if(Object.keys(a[Y]).length!==0){if(!equals(a[Y],b[Y])){X=!1;}}}else{X=!1;}}else if(!equals(a[Y],b[Y])){X=!1;}}else{X=!1;}}});return X;}}return!1;}O.exports=R(equals);},function(b1,c1,d1){const e1=d1(0);function map(fn,g1){let h1=-1;const i1=g1.length,j1=Array(i1);while(++h1<i1){j1[h1]=fn(g1[h1]);}return j1;}b1.exports=e1(map);},function(k1,l1,m1){const n1=m1(0);function merge(o1,p1){return Object.assign({},o1,p1);}k1.exports=n1(merge);},function(q1,r1,s1){const t1=s1(28),u1=s1(29),v1=s1(30),w1=s1(31),x1=s1(32);r1.add=u1('+');r1.addIndex=s1(9);r1.adjust=s1(10);r1.always=x=>x;r1.any=s1(11);r1.append=s1(12);r1.compose=s1(13);r1.concat=v1("concat");r1.contains=s1(14);r1.curry=s1(3);r1.defaultTo=s1(15);r1.divide=u1('/');r1.drop=s1(16);r1.dropLast=s1(17);r1.endsWith=t1("endsWith");r1.equals=s1(4);r1.F=()=>!1;r1.filter=s1(18);r1.find=s1(19);r1.findIndex=s1(20);r1.flatten=s1(21);r1.has=s1(22);r1.head=s1(23);r1.ifElse=s1(24);r1.includes=t1("includes");r1.indexOf=s1(25);r1.init=s1(26);r1.join=t1('join');r1.last=s1(33);r1.lastIndexOf=t1("lastIndexOf");r1.length=w1("length");r1.map=s1(5);r1.match=s1(34);r1.merge=s1(6);r1.modulo=u1('%');r1.multiply=u1('*');r1.not=s1(35);r1.omit=s1(36);r1.padEnd=t1('padEnd');r1.padStart=t1('padStart');r1.partialCurry=s1(37);r1.path=s1(38);r1.pick=s1(39);r1.pluck=s1(40);r1.prepend=s1(41);r1.prop=s1(42);r1.propEq=s1(43);r1.range=s1(44);r1.reduce=s1(45);r1.repeat=s1(46);r1.replace=s1(47);r1.reverse=x1('reverse');r1.sort=s1(48);r1.sortBy=s1(49);r1.split=s1(50);r1.T=()=>!0;},function(y1,z1,A1){const B1=A1(7);y1.exports.R=B1;},function(C1,D1){function addIndex(E1){return function(fn,...rest){let G1=0;const newFn=(...args)=>fn.apply(null,[...args,G1++]);return E1.apply(null,[newFn,...rest]);};}C1.exports=addIndex;},function(H1,I1,J1){const K1=J1(1);function adjust(fn,M1,N1){const O1=N1.concat();return O1.map((P1,Q1)=>{if(Q1===M1){return fn(N1[M1]);}return P1;});}H1.exports=K1(adjust);},function(R1,S1,T1){const U1=T1(0);function any(fn,W1){let X1=0;while(X1<W1.length){if(fn(W1[X1])){return!0;}X1++;}return!1;}R1.exports=U1(any);},function(Y1,Z1,a2){const b2=a2(0);function append(c2,d2){const e2=d2.concat();e2.push(c2);return e2;}Y1.exports=b2(append);},function(f2,g2){const compose=(...fns)=>h2=>{let i2=fns.slice();while(i2.length>0){h2=i2.pop()(h2);}return h2;};f2.exports=compose;},function(j2,k2,l2){const m2=l2(4),n2=l2(0);function contains(o2,p2){let q2=-1,r2=!1;while(++q2<p2.length&&!r2){if(m2(p2[q2],o2)){r2=!0;}}return r2;}j2.exports=n2(contains);},function(s2,t2,u2){const v2=u2(2);function defaultTo(w2,x2){if(arguments.length===1){return y2=>defaultTo(w2,y2);}return x2===void 0||!(v2(x2)===v2(w2))?w2:x2;}s2.exports=defaultTo;},function(z2,A2,B2){const C2=B2(0);function drop(D2,a){return a.slice(D2);}z2.exports=C2(drop);},function(E2,F2,G2){const H2=G2(0);function dropLast(I2,a){return a.slice(0,-I2);}E2.exports=H2(dropLast);},function(J2,K2,L2){const M2=L2(0);function filter(fn,O2){let P2=-1,Q2=0;const R2=O2.length,S2=[];while(++P2<R2){const T2=O2[P2];if(fn(T2)){S2[Q2++]=T2;}}return S2;}J2.exports=M2(filter);},function(U2,V2,W2){const X2=W2(0);function find(fn,Z2){return Z2.find(fn);}U2.exports=X2(find);},function(a3,b3,c3){const d3=c3(0);function findIndex(fn,f3){const g3=f3.length;let h3=-1;while(++h3<g3){if(fn(f3[h3])){return h3;}}return-1;}a3.exports=d3(findIndex);},function(i3,j3){function flatten(k3,l3){l3=l3===void 0?[]:l3;for(let i=0;i<k3.length;i++){if(Array.isArray(k3[i])){flatten(k3[i],l3);}else{l3.push(k3[i]);}}return l3;}i3.exports=flatten;},function(m3,n3,o3){const p3=o3(0);function has(q3,r3){return r3[q3]!==void 0;}m3.exports=p3(has);},function(s3,t3){function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}s3.exports=head;},function(u3,v3,w3){const x3=w3(1);function ifElse(y3,z3,A3){return B3=>{if(y3(B3)===!0){return z3(B3);}return A3(B3);};}u3.exports=x3(ifElse);},function(C3,D3,E3){const F3=E3(0);function indexOf(G3,H3){let I3=-1;const J3=H3.length;while(++I3<J3){if(H3[I3]===G3){return I3;}}return-1;}C3.exports=F3(indexOf);},function(K3,L3,M3){const N3=M3(27);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?N3(a,0,-1):[];}K3.exports=init;},function(O3,P3){function baseSlice(Q3,R3,S3){let T3=-1,U3=Q3.length;S3=S3>U3?U3:S3;if(S3<0){S3+=U3;}U3=R3>S3?0:S3-R3>>>0;R3>>>=0;const V3=Array(U3);while(++T3<U3){V3[T3]=Q3[T3+R3];}return V3;}O3.exports=baseSlice;},function(W3,X3){function helper(Y3,x,y){if(x===void 0){return(Z3,a4)=>helper(Y3,Z3,a4);}else if(y===void 0){return b4=>helper(Y3,x,b4);}if(y[Y3]!==void 0){return y[Y3](x);}}W3.exports=helper;},function(c4,d4,e4){const f4=e4(1);function mathHelper(g4,x,y){switch(g4){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}c4.exports=f4(mathHelper);},function(h4,i4){function oppositeHelper(j4,x,y){if(x===void 0){return(k4,l4)=>oppositeHelper(j4,k4,l4);}else if(y===void 0){return m4=>oppositeHelper(j4,x,m4);}if(x[j4]!==void 0){return x[j4](y);}}h4.exports=oppositeHelper;},function(n4,o4){function propHelper(p4,x){if(x===void 0){return q4=>propHelper(p4,q4);}return x[p4];}n4.exports=propHelper;},function(r4,s4){function simpleHelper(t4,x){if(x===void 0){return u4=>simpleHelper(t4,u4);}if(x[t4]!==void 0){return x[t4]();}}r4.exports=simpleHelper;},function(v4,w4){function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}v4.exports=last;},function(x4,y4,z4){const A4=z4(0);function match(B4,C4){const D4=C4.match(B4);return D4===null?[]:D4;}x4.exports=A4(match);},function(E4,F4){function not(x){return!x;}E4.exports=not;},function(G4,H4,I4){const J4=I4(2),K4=I4(0);function omit(L4,M4){if(J4(L4)==='String'){L4=L4.split(',').map(x=>x.trim());}const N4={};for(const O4 in M4){if(!L4.includes(O4)){N4[O4]=M4[O4];}}return N4;}G4.exports=K4(omit);},function(P4,Q4,R4){const S4=R4(2),T4=R4(6);function partialCurry(fn,V4={}){return W4=>{if(S4(fn)==="Async"||S4(fn)==="Promise"){return new Promise((X4,Y4)=>{fn(T4(W4,V4)).then(X4).catch(Y4);});}return fn(T4(W4,V4));};}P4.exports=partialCurry;},function(Z4,a5,b5){const c5=b5(2),d5=b5(3);function path(e5,f5){if(!(c5(f5)==="Object")){return void 0;}let g5=f5,h5=0;if(typeof e5==="string"){e5=e5.split(".");}while(h5<e5.length){if(g5===null||g5===void 0){return void 0;}g5=g5[e5[h5]];h5++;}return g5;}Z4.exports=d5(path);},function(i5,j5,k5){const l5=k5(0),m5=k5(2);function pick(n5,o5){if(m5(n5)==='String'){n5=n5.split(',').map(x=>x.trim());}const p5={};let q5=0;while(q5<n5.length){if(n5[q5]in o5){p5[n5[q5]]=o5[n5[q5]];}q5++;}return p5;}i5.exports=l5(pick);},function(r5,s5,t5){const u5=t5(0),v5=t5(5);function pluck(w5,x5){const y5=[];v5(z5=>{if(!(z5[w5]===void 0)){y5.push(z5[w5]);}},x5);return y5;}r5.exports=u5(pluck);},function(A5,B5,C5){const D5=C5(0);function prepend(E5,F5){const G5=F5.concat();G5.unshift(E5);return G5;}A5.exports=D5(prepend);},function(H5,I5,J5){const K5=J5(0);function prop(L5,M5){return M5[L5];}H5.exports=K5(prop);},function(N5,O5,P5){const Q5=P5(1);function propEq(R5,S5,T5){return T5[R5]===S5;}N5.exports=Q5(propEq);},function(U5,V5){function range(W5,X5){const Y5=[];for(let i=W5;i<X5;i++){Y5.push(i);}return Y5;}U5.exports=range;},function(Z5,a6,b6){const c6=b6(1);function reduce(fn,e6,f6){return f6.reduce(fn,e6);}Z5.exports=c6(reduce);},function(g6,h6,i6){const j6=i6(0);function repeat(a,k6){const l6=Array(k6);return l6.fill(a);}g6.exports=j6(repeat);},function(m6,n6,o6){const p6=o6(1);function replace(q6,r6,s6){return s6.replace(q6,r6);}m6.exports=p6(replace);},function(t6,u6,v6){const w6=v6(0);function sort(fn,y6){const z6=y6.concat();return z6.sort(fn);}t6.exports=w6(sort);},function(A6,B6){function sortBy(fn,D6){if(D6===void 0){return E6=>sortBy(fn,E6);}const F6=D6.concat();return F6.sort((a,b)=>{const G6=fn(a),H6=fn(b);return G6<H6?-1:G6>H6?1:0;});}A6.exports=sortBy;},function(I6,J6){function split(K6,L6){if(L6===void 0){return M6=>split(K6,M6);}return L6.split(K6);}I6.exports=split;}]);});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc