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.5.10 to 0.5.11

4

__tests__/add.js

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

const R = require("../")
const R = require("../rambda")
describe("add",()=>{
describe("add", () => {
it("without curring", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("adjust",()=>{
describe("adjust", () => {
it("without curring", () => {

@@ -24,6 +24,5 @@ expect(

expect(
R.adjust(R.add(10),1)([ 0, 1, 2 ])
R.adjust(R.add(10), 1)([ 0, 1, 2 ])
).toEqual([ 0, 11, 2 ])
})
})

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

const R = require("../")
const R = require("../rambda")
describe("any",()=>{
it("",()=>{
describe("any", () => {
it("", () => {
expect(

@@ -6,0 +6,0 @@ R.any(val => val < 0)([ 1, 2 ])

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

const R = require("../")
const R = require("../rambda")
describe("append",()=>{
it("",()=>{
describe("append", () => {
it("", () => {
expect(

@@ -24,3 +24,15 @@ R.compose(

})
})
describe("append",() => {
it("should not modify arguments", () => {
const a = [1, 2, 3]
const b = R.append(4,a)
expect(
a
).toEqual([1,2,3])
expect(
b
).toEqual([1,2,3,4])
})
})

@@ -1,8 +0,7 @@

const R = require("../")
const R = require("../rambda")
describe("compose",()=>{
it("",()=>{
describe("compose", () => {
it("", () => {
expect(() => { R.compose(3, [ 1, 2, 3 ]) }).toThrow()
})
})

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

const R = require("../")
const R = require("../rambda")
describe("contains",()=>{
it("",()=>{
describe("contains", () => {
it("", () => {
expect(R.contains(3)([ 1, 2, 3 ])).toBeTruthy()

@@ -6,0 +6,0 @@ expect(R.contains(4, [ 1, 2, 3 ])).toBeFalsy()

@@ -1,26 +0,28 @@

const R = require("../")
const R = require("../rambda")
describe("curry", () => {
it("", () => {
const fn = ({a,b,c})=>{
return (a*b)+c
}
const curried = R.curry(fn,{a:2})
const fn = ({ a, b, c }) => a * b + c
const curried = R.curry(fn, { a : 2 })
expect(R.type(curried)).toEqual("Function")
expect(curried({b:3,c:10})).toEqual(16)
expect(curried({
b : 3,
c : 10,
})).toEqual(16)
})
it("async", async () => {
const delay = ms => new Promise(resolve=>{
setTimeout(()=>{
resolve(ms*2)
},ms)
const delay = ms => new Promise(resolve => {
setTimeout(() => {
resolve(ms * 2)
}, ms)
})
const fn = async ({a,b})=>{
const fn = async ({ a, b }) => {
const result = await delay(a)
return result + b
}
const curried = R.curry(fn,{a:200})
const curried = R.curry(fn, { a : 200 })
expect(R.type(curried)).toEqual("Function")
expect(await curried({b:3})).toEqual(403)
expect(await curried({ b : 3 })).toEqual(403)
})
})

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

const R = require("../")
const R = require("../rambda")
describe("defaultTo",()=>{
it("",()=>{
expect(
describe("defaultTo", () => {
it("", () => {
expect(
R.defaultTo("foo")(undefined)
).toEqual("foo")
expect(
R.defaultTo("foo",undefined)
expect(
R.defaultTo("foo", undefined)
).toEqual("foo")
expect(
R.defaultTo("foo",1)
expect(
R.defaultTo("foo", 1)
).toEqual("foo")
expect(
R.defaultTo("foo","bar")
expect(
R.defaultTo("foo", "bar")
).toEqual("bar")
expect(
R.defaultTo(undefined,"bar")
expect(
R.defaultTo(undefined, "bar")
).toEqual(undefined)
})
})
})

@@ -1,6 +0,5 @@

const R = require("../")
const R = require("../rambda")
describe("drop",()=>{
it("",()=>{
describe("drop", () => {
it("", () => {
expect(

@@ -7,0 +6,0 @@ R.drop(1, [ "foo", "bar", "baz" ])

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

const R = require("../")
const R = require("../rambda")
describe("dropLast",()=>{
it("",()=>{
describe("dropLast", () => {
it("", () => {
expect(R.dropLast(1, [ "foo", "bar", "baz" ])).toEqual([ "foo", "bar" ])

@@ -6,0 +6,0 @@ expect(R.dropLast(2)([ "foo", "bar", "baz" ])).toEqual([ "foo" ])

@@ -1,90 +0,131 @@

const R = require("../")
const R = require("../rambda")
describe("equals",()=>{
it("", () => {
expect(
describe("equals", () => {
it("", () => {
expect(
R.equals([ 1, 2, 3 ], [ 1, 2, 3 ])
).toBeTruthy()
expect(
expect(
R.equals([ 1, 2, 3 ], [ 1, 2 ])
).toBeFalsy()
expect(
expect(
R.equals(1, 1)
).toBeTruthy()
expect(
expect(
R.equals(1, "1")
).toBeFalsy()
expect(
expect(
R.equals({}, {})
).toBeTruthy()
expect(
R.equals({ a:1, b:2 }, { b:2, a:1 })
expect(
R.equals({
a : 1,
b : 2,
}, {
b : 2,
a : 1,
})
).toBeTruthy()
expect(
R.equals({ a:1, b:2 }, { a:1, b:1 })
expect(
R.equals({
a : 1,
b : 2,
}, {
a : 1,
b : 1,
})
).toBeFalsy()
expect(
R.equals({ a:1, b:false }, { a:1, b:1 })
expect(
R.equals({
a : 1,
b : false,
}, {
a : 1,
b : 1,
})
).toBeFalsy()
expect(
R.equals({ a:1, b:2 }, { b:2, a:1, c:3 })
expect(
R.equals({
a : 1,
b : 2,
}, {
b : 2,
a : 1,
c : 3,
})
).toBeFalsy()
expect(
R.equals({ x:{ a:1, b:2 } }, { x:{ b:2, a:1, c:3 } })
expect(
R.equals({
x : {
a : 1,
b : 2,
},
}, {
x : {
b : 2,
a : 1,
c : 3,
},
})
).toBeFalsy()
expect(
R.equals({ a:1, b:2 }, { b:3, a:1 })
expect(
R.equals({
a : 1,
b : 2,
}, {
b : 3,
a : 1,
})
).toBeFalsy()
expect(
R.equals({ a:{ b:{ c:1 } } }, { a:{ b:{ c:1 } } })
expect(
R.equals({ a : { b : { c : 1 } } }, { a : { b : { c : 1 } } })
).toBeTruthy()
expect(
R.equals({ a:{ b:{ c:1 } } }, { a:{ b:{ c:2 } } })
expect(
R.equals({ a : { b : { c : 1 } } }, { a : { b : { c : 2 } } })
).toBeFalsy()
expect(
R.equals({ a:{} }, { a:{} })
expect(
R.equals({ a : {} }, { a : {} })
).toBeTruthy()
expect(
expect(
R.equals("", "")
).toBeTruthy()
expect(
expect(
R.equals("foo", "foo")
).toBeTruthy()
expect(
expect(
R.equals("foo", "bar")
).toBeFalsy()
expect(
expect(
R.equals(0, false)
).toBeFalsy()
expect(
expect(
R.equals(/\s/g, null)
).toBeFalsy()
expect(
expect(
R.equals(null, null)
).toBeTruthy()
expect(
expect(
R.equals(false)(null)
).toBeFalsy()
})
})
})

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

const R = require("../")
const R = require("../rambda")
describe("drop",()=>{
describe("drop", () => {
it("filter", () => {

@@ -14,3 +14,2 @@ const isEven = n => n % 2 === 0

})
})

@@ -1,14 +0,13 @@

const R = require("../")
const R = require("../rambda")
describe("drop",()=>{
describe("drop", () => {
it("find", () => {
expect(
R.find(R.propEq("a", 2))([ { a: 1 }, { a: 2 }, { a: 3 } ])
).toEqual({ a: 2 })
R.find(R.propEq("a", 2))([ { a : 1 }, { a : 2 }, { a : 3 } ])
).toEqual({ a : 2 })
expect(
R.find(R.propEq("a", 4))([ { a: 1 }, { a: 2 }, { a: 3 } ])
R.find(R.propEq("a", 4))([ { a : 1 }, { a : 2 }, { a : 3 } ])
).toEqual(undefined)
})
})

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

const R = require("../")
const R = require("../rambda")
describe("drop",()=>{
describe("drop", () => {
it("findIndex", () => {
expect(
R.findIndex(R.propEq("a", 2))([ { a: 1 }, { a: 2 }, { a: 3 } ])
R.findIndex(R.propEq("a", 2))([ { a : 1 }, { a : 2 }, { a : 3 } ])
).toEqual(1)
expect(
R.findIndex(R.propEq("a", 1))([ { a: 1 }, { a: 2 }, { a: 3 } ])
R.findIndex(R.propEq("a", 1))([ { a : 1 }, { a : 2 }, { a : 3 } ])
).toEqual(0)
expect(
R.findIndex(R.propEq("a", 4))([ { a: 1 }, { a: 2 }, { a: 3 } ])
R.findIndex(R.propEq("a", 4))([ { a : 1 }, { a : 2 }, { a : 3 } ])
).toEqual(-1)
})
})

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

const R = require("../")
const R = require("../rambda")
describe("drop",()=>{
describe("drop", () => {
it("flatten", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("has",()=>{
describe("has", () => {
it("has", () => {
expect(
R.has("a")({ a: 1 })
R.has("a")({ a : 1 })
).toBeTruthy()
expect(
R.has("b",{ a: 1 })
R.has("b", { a : 1 })
).toBeFalsy()
})
})

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

const R = require("../")
const R = require("../rambda")
describe("head",()=>{
describe("head", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("indexOf",()=>{
describe("indexOf", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("init",()=>{
describe("init", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("join",()=>{
describe("join", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("last",()=>{
describe("last", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("length",()=>{
describe("length", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("map",()=>{
describe("map", () => {
it("", () => {

@@ -5,0 +5,0 @@ const double = x => x * 2

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

const R = require("../")
const R = require("../rambda")
describe("match",()=>{
describe("match", () => {
it("", () => {

@@ -21,3 +21,2 @@ expect(

})
})

@@ -1,11 +0,17 @@

const R = require("../")
const R = require("../rambda")
describe("merge",()=>{
describe("merge", () => {
it("", () => {
expect(
R.merge(
{ foo:"bar", bar:"bar" }
)({ bar:"baz" })
).toEqual({ foo:"bar", bar:"baz" })
{
foo : "bar",
bar : "bar",
}
)({ bar : "baz" })
).toEqual({
foo : "bar",
bar : "baz",
})
})
})

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

const R = require("../")
const R = require("../rambda")
describe("omit",()=>{
describe("omit", () => {
it("", () => {

@@ -8,5 +8,9 @@ expect(

[ "a", "c" ]
)({ a:"foo", b:"bar", c:"baz" })
).toEqual({ b:"bar" })
)({
a : "foo",
b : "bar",
c : "baz",
})
).toEqual({ b : "bar" })
})
})

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

const R = require("../")
const R = require("../rambda")
const Ramda = require("ramda")
describe("other",()=>{
describe("other", () => {
it("example", () => {

@@ -6,0 +6,0 @@ const url = "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice"

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

const R = require("../")
const R = require("../rambda")
describe("path",()=>{
describe("path", () => {
it("", () => {

@@ -8,3 +8,3 @@ expect(

[ "foo", "bar", "baz" ]
)({ foo:{ bar:{ baz:"yes" } } })
)({ foo : { bar : { baz : "yes" } } })
).toEqual("yes")

@@ -21,5 +21,5 @@

[ "foo", "bar", "baz" ]
)({ foo:{ bar:"baz" } })
)({ foo : { bar : "baz" } })
).toEqual(undefined)
})
})

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

const R = require("../")
const R = require("../rambda")
describe("pick",()=>{
describe("pick", () => {
it("", () => {

@@ -8,4 +8,11 @@ expect(

[ "a", "c" ]
)({ a:"foo", b:"bar", c:"baz" })
).toEqual({ a:"foo", c:"baz" })
)({
a : "foo",
b : "bar",
c : "baz",
})
).toEqual({
a : "foo",
c : "baz",
})

@@ -15,5 +22,9 @@ expect(

[ "a", "d", "e", "f" ]
)({ a:"foo", b:"bar", c:"baz" })
).toEqual({ a:"foo" })
)({
a : "foo",
b : "bar",
c : "baz",
})
).toEqual({ a : "foo" })
})
})

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

const R = require("../")
const R = require("../rambda")
describe("pluck",()=>{
it("",()=>{
expect(
R.pluck('a')([{a: 1}, {a: 2}])
).toEqual([1,2])
})
describe("pluck", () => {
it("", () => {
expect(
R.pluck("a")([ { a : 1 }, { a : 2 } ])
).toEqual([ 1, 2 ])
})
})

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

const R = require("../")
const R = require("../rambda")
describe("prepend",()=>{
describe("prepend", () => {
it("", () => {

@@ -11,4 +11,4 @@ expect(

R.prepend("foo")([ ])
).toEqual(["foo"])
).toEqual([ "foo" ])
})
})

@@ -1,19 +0,17 @@

const R = require("../")
const R = require("../rambda")
describe("prop",()=>{
it("", () => {
expect(
describe("prop", () => {
it("", () => {
expect(
R.prop(
"foo"
)({ foo:"baz" })
)({ foo : "baz" })
).toEqual("baz")
expect(
expect(
R.prop(
"bar"
)({ foo:"baz" })
)({ foo : "baz" })
).toEqual(undefined)
})
})
})

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

const R = require("../")
const R = require("../rambda")
describe("propEq",()=>{
describe("propEq", () => {
it("", () => {

@@ -9,3 +9,3 @@ expect(

"bar"
)({ foo:"bar" })
)({ foo : "bar" })
).toBeTruthy()

@@ -17,9 +17,9 @@

"bar"
)({ foo:"baz" })
)({ foo : "baz" })
).toBeFalsy()
expect(
R.propEq("foo")("bar")({ foo:"baz" })
R.propEq("foo")("bar")({ foo : "baz" })
).toBeFalsy()
})
})

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

const R = require("../")
const R = require("../rambda")
describe("range",()=>{
describe("range", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("repeat",()=>{
describe("repeat", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("replace",()=>{
describe("replace", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("sort",()=>{
describe("sort", () => {
it("", () => {

@@ -17,3 +17,2 @@ expect(

})
})

@@ -1,47 +0,44 @@

const R = require("../")
const Ramda = require("ramda")
const R = require("../rambda")
describe("sortBy",()=>{
it("", () => {
const sortByNameCaseInsensitive = R.sortBy(
describe("sortBy", () => {
it("", () => {
const sortByNameCaseInsensitive = R.sortBy(
R.compose(
R.toLower,
Ramda.prop("name")
R.prop("name")
)
)
const alice = {
name: "ALICE",
age: 101,
}
const bob = {
name: "Bob",
age: -10,
}
const clara = {
name: "clara",
age: 314.159,
}
const people = [ clara, bob, alice ]
expect(
const alice = {
name : "ALICE",
age : 101,
}
const bob = {
name : "Bob",
age : -10,
}
const clara = {
name : "clara",
age : 314.159,
}
const people = [ clara, bob, alice ]
expect(
sortByNameCaseInsensitive(people)
).toEqual([ alice, bob, clara ])
expect(
R.sortBy(val => val.a, [ { a:2 }, { a:1 }, { a:0 } ])
).toEqual([ { a:0 }, { a:1 }, { a:2 } ])
expect(
R.sortBy(val => val.a, [ { a : 2 }, { a : 1 }, { a : 0 } ])
).toEqual([ { a : 0 }, { a : 1 }, { a : 2 } ])
expect(
R.sortBy(val => val.a, [ { a:1 }, { a:1 }, { a:1 } ])
).toEqual([ { a:1 }, { a:1 }, { a:1 } ])
expect(
R.sortBy(val => val.a, [ { a : 1 }, { a : 1 }, { a : 1 } ])
).toEqual([ { a : 1 }, { a : 1 }, { a : 1 } ])
expect(
R.sortBy(val => val.a, [ { a:3 }, { a:2 }, { a:1 } ])
).toEqual([ { a:1 }, { a:2 }, { a:3 } ])
expect(
R.sortBy(val => val.a, [ { a : 3 }, { a : 2 }, { a : 1 } ])
).toEqual([ { a : 1 }, { a : 2 }, { a : 3 } ])
expect(
R.sortBy(val => val.a, [ { a:1 }, { a:2 }, { a:3 } ])
).toEqual([ { a:1 }, { a:2 }, { a:3 } ])
})
expect(
R.sortBy(val => val.a, [ { a : 1 }, { a : 2 }, { a : 3 } ])
).toEqual([ { a : 1 }, { a : 2 }, { a : 3 } ])
})
})

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

const R = require("../")
const R = require("../rambda")
describe("split",()=>{
describe("split", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("splitEvery",()=>{
describe("splitEvery", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("tail",()=>{
describe("tail", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(R.tail([ 1, 2, 3 ])).toEqual([ 2, 3 ])

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

const R = require("../")
const R = require("../rambda")
describe("take",()=>{
describe("take", () => {
it("", () => {

@@ -5,0 +5,0 @@ const arr = [ "foo", "bar", "baz" ]

@@ -1,6 +0,5 @@

const R = require("../")
const R = require("../rambda")
describe("takeLast",()=>{
describe("takeLast", () => {
it("", () => {
expect(

@@ -7,0 +6,0 @@ R.takeLast(1, [ "foo", "bar", "baz" ])

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

const R = require("../")
const R = require("../rambda")
describe("test",()=>{
describe("test", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("toLower",()=>{
describe("toLower", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("toUpper",()=>{
describe("toUpper", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("trim",()=>{
describe("trim", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("type",()=>{
describe("type", () => {
it("", () => {
const fn1 = () =>{}
const fn2 = function(){}
function fn3(){}
const fn1 = () => {}
const fn2 = function () {}
function fn3 () {}
[
()=>{},
() => {},
fn1,
fn2,
fn3
].map(val=>{
fn3,
].map(val => {
expect(

@@ -19,4 +19,5 @@ R.type(val)

async function fn4(){
const a = await R.add(1,2)
async function fn4 () {
const a = await R.add(1, 2)
return a

@@ -26,5 +27,5 @@ }

[
async ()=>{},
async () => {},
fn4,
].map(val=>{
].map(val => {
expect(

@@ -31,0 +32,0 @@ R.type(val)

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

const R = require("../")
const R = require("../rambda")
describe("uniq",()=>{
describe("uniq", () => {
it("", () => {

@@ -5,0 +5,0 @@ expect(

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

const R = require("../")
const R = require("../rambda")
describe("update",()=>{
describe("update", () => {
it("", () => {

@@ -10,3 +10,2 @@ expect(

})
})

@@ -1,9 +0,13 @@

const R = require("../")
const R = require("../rambda")
describe("values",()=>{
describe("values", () => {
it("", () => {
expect(
R.values({ a:1, b:2, c:3 })
R.values({
a : 1,
b : 2,
c : 3,
})
).toEqual([ 1, 2, 3 ])
})
})

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

function add(a,b){if(b===void 0){return c=>add(a,c);}return a+b;}function adjust(d,e,f){if(e===void 0){return(g,h)=>adjust(d,g,h);}else if(f===void 0){return j=>adjust(d,e,j);}return f.map((k,l)=>{if(l===e){return d(f[e]);}return k;});}function any(m,n){if(n===void 0){return o=>any(m,o);}let p=0;while(p<n.length){if(m(n[p])){return!0;}p++;}return!1;}function append(q,r){if(r===void 0){return s=>append(q,s);}const t=r;t.push(q);return t;}function isFunction(u){return typeof u==="function";}function compose(){const v=arguments;let w=v.length;while(w--){if(!isFunction(v[w])){throw new TypeError();}}return function(){let x=arguments,y=v.length;while(y--){x=[v[y].apply(this,x)];}return x[0];};}function contains(z,A){if(A===void 0){return B=>contains(z,B);}let C=-1,D=!1;while(++C<A.length&&!D){if(equals(A[C],z)){D=!0;}}return D;}function filter(E,F){if(F===void 0){return G=>filter(E,G);}let H=-1,I=0;const J=F.length,K=[];while(++H<J){const L=F[H];if(E(L)){K[I++]=L;}}return K;}function find(M,N){if(N===void 0){return O=>find(M,O);}return N.find(M);}function findIndex(P,Q){if(Q===void 0){return R=>findIndex(P,R);}const S=Q.length;let T=-1;while(++T<S){if(P(Q[T])){return T;}}return-1;}function flatten(U,V){V=V===void 0?[]:V;for(let i=0;i<U.length;i++){if(Array.isArray(U[i])){flatten(U[i],V);}else{V.push(U[i]);}}return V;}function drop(W,a){if(a===void 0){return X=>drop(W,X);}return a.slice(W);}function dropLast(Y,a){if(a===void 0){return Z=>dropLast(Y,Z);}return a.slice(0,-Y);}function equals(a,b){if(b===void 0){return a1=>equals(a,a1);}else if(a===b){return a!==0||1/a===1/b;}const b1=type(a);if(b1!==type(b)){return!1;}if(b1==="Array"){const c1=a,d1=b;return c1.sort().toString()===d1.sort().toString();}if(b1==="Object"){const e1=Object.keys(a);if(e1.length===Object.keys(b).length){if(e1.length===0){return!0;}let f1=!0;e1.map(g1=>{if(f1){const h1=type(a[g1]),i1=type(b[g1]);if(h1===i1){if(h1==="Object"){if(Object.keys(a[g1]).length===Object.keys(b[g1]).length){if(Object.keys(a[g1]).length!==0){if(!equals(a[g1],b[g1])){f1=!1;}}}else{f1=!1;}}else if(!equals(a[g1],b[g1])){f1=!1;}}else{f1=!1;}}});return f1;}}return!1;}function has(j1,k1){if(k1===void 0){return l1=>has(j1,l1);}return k1[j1]!==void 0;}function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}function indexOf(m1,n1){if(n1===void 0){return o1=>indexOf(m1,o1);}let p1=-1;const q1=n1.length;while(++p1<q1){if(n1[p1]===m1){return p1;}}return-1;}function baseSlice(r1,s1,t1){let u1=-1,v1=r1.length;t1=t1>v1?v1:t1;if(t1<0){t1+=v1;}v1=s1>t1?0:t1-s1>>>0;s1>>>=0;const w1=Array(v1);while(++u1<v1){w1[u1]=r1[u1+s1];}return w1;}function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function join(x1,y1){if(y1===void 0){return z1=>join(x1,z1);}return y1.join(x1);}function map(fn,B1){if(B1===void 0){return C1=>map(fn,C1);}let D1=-1;const E1=B1.length,F1=Array(E1);while(++D1<E1){F1[D1]=fn(B1[D1]);}return F1;}function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}function length(G1){return G1.length;}function match(H1,I1){if(I1===void 0){return J1=>match(H1,J1);}const K1=I1.match(H1);return K1===null?[]:K1;}function merge(L1,M1){if(M1===void 0){return N1=>merge(L1,N1);}return Object.assign({},L1,M1);}function omit(O1,P1){if(P1===void 0){return Q1=>omit(O1,Q1);}const R1={};for(key in P1){if(!O1.includes(key)){R1[key]=P1[key];}}return R1;}function path(S1,T1){if(T1===void 0){return U1=>path(S1,U1);}let V1=T1,W1=0;while(W1<S1.length){if(V1===null){return void 0;}V1=V1[S1[W1]];W1++;}return V1;}function pick(X1,Y1){if(Y1===void 0){return Z1=>pick(X1,Z1);}const a2={};let b2=0;while(b2<X1.length){if(X1[b2]in Y1){a2[X1[b2]]=Y1[X1[b2]];}b2++;}return a2;}function pluck(c2,d2){if(d2===void 0){return e2=>pluck(c2,e2);}const f2=[];map(g2=>{if(!(g2[c2]===void 0)){f2.push(g2[c2]);}},d2);return f2;}function prepend(h2,i2){if(i2===void 0){return j2=>prepend(h2,j2);}const k2=i2;k2.unshift(h2);return k2;}function prop(l2,m2){if(m2===void 0){return n2=>prop(l2,n2);}return m2[l2];}function propEq(o2,p2,q2){if(p2===void 0){return(r2,s2)=>propEq(o2,r2,s2);}else if(q2===void 0){return t2=>propEq(o2,p2,t2);}return q2[o2]===p2;}function range(u2,v2){const w2=[];for(let i=u2;i<v2;i++){w2.push(i);}return w2;}function repeat(a,x2){if(x2===void 0){return y2=>repeat(a,y2);}const z2=Array(x2);return z2.fill(a);}function replace(A2,B2,C2){if(B2===void 0){return(D2,E2)=>replace(A2,D2,E2);}else if(C2===void 0){return F2=>replace(A2,B2,F2);}return C2.replace(A2,B2);}function subtract(a,b){if(b===void 0){return G2=>subtract(a,G2);}return a-b;}function sort(fn,I2){if(I2===void 0){return J2=>sort(fn,J2);}const K2=Array.from(I2);return K2.sort(fn);}function sortBy(fn,M2){if(M2===void 0){return N2=>sortBy(fn,N2);}const O2=Array.from(M2);return O2.sort((a,b)=>{const P2=fn(a),Q2=fn(b);return P2<Q2?-1:P2>Q2?1:0;});}function split(R2,S2){if(S2===void 0){return T2=>split(R2,T2);}return S2.split(R2);}function splitEvery(U2,a){if(a===void 0){return V2=>splitEvery(U2,V2);}U2=U2>1?U2:1;const W2=[];let X2=0;while(X2<a.length){W2.push(a.slice(X2,X2+=U2));}return W2;}function tail(Y2){return drop(1,Y2);}function take(Z2,a){if(a===void 0){return a3=>take(Z2,a3);}else if(typeof a==="string"){return a.slice(0,Z2);}return baseSlice(a,0,Z2);}function takeLast(b3,a){if(a===void 0){return c3=>takeLast(b3,c3);}const d3=a.length;b3=b3>d3?d3:b3;if(typeof a==="string"){return a.slice(d3-b3);}b3=d3-b3;return baseSlice(a,b3,d3);}function toLower(e3){return e3.toLowerCase();}function toUpper(f3){return f3.toUpperCase();}function test(g3,h3){if(h3===void 0){return i3=>test(g3,i3);}return h3.search(g3)===-1?!1:!0;}function trim(j3){return j3.trim();}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 k3=a.toString();if(k3.startsWith("async")){return"Async";}else if(k3.includes("function")||k3.includes("=>")){return"Function";}return"Object";}function values(l3){const m3=[];for(key in l3){m3.push(l3[key]);}return m3;}function uniq(n3){let o3=-1;const p3=[];while(++o3<n3.length){const q3=n3[o3];if(!contains(q3,p3)){p3.push(q3);}}return p3;}function update(r3,s3,t3){if(s3===void 0){return(u3,v3)=>update(r3,u3,v3);}else if(t3===void 0){return w3=>update(r3,s3,w3);}const x3=Array.from(t3);return x3.fill(s3,r3,r3+1);}function defaultTo(y3,z3){if(arguments.length===1){return A3=>defaultTo(y3,A3);}return z3===void 0||!(type(z3)===type(y3))?y3:z3;}function curry(fn,C3={}){return D3=>{if(type(fn)==="Async"){return new Promise((E3,F3)=>{fn(merge(D3,C3)).then(E3).catch(F3);});}return fn(merge(D3,C3));};}exports.add=add;exports.adjust=adjust;exports.any=any;exports.append=append;exports.compose=compose;exports.contains=contains;exports.curry=curry;exports.defaultTo=defaultTo;exports.drop=drop;exports.dropLast=dropLast;exports.equals=equals;exports.filter=filter;exports.find=find;exports.findIndex=findIndex;exports.flatten=flatten;exports.has=has;exports.head=head;exports.indexOf=indexOf;exports.init=init;exports.join=join;exports.last=last;exports.length=length;exports.map=map;exports.match=match;exports.merge=merge;exports.omit=omit;exports.path=path;exports.pick=pick;exports.pluck=pluck;exports.prepend=prepend;exports.prop=prop;exports.propEq=propEq;exports.range=range;exports.repeat=repeat;exports.replace=replace;exports.sort=sort;exports.sortBy=sortBy;exports.split=split;exports.splitEvery=splitEvery;exports.subtract=subtract;exports.tail=tail;exports.take=take;exports.takeLast=takeLast;exports.test=test;exports.toLower=toLower;exports.toUpper=toUpper;exports.trim=trim;exports.type=type;exports.uniq=uniq;exports.update=update;exports.values=values;
function add(a,b){if(b===void 0){return c=>add(a,c);}return a+b;}function adjust(d,e,f){if(e===void 0){return(g,h)=>adjust(d,g,h);}else if(f===void 0){return j=>adjust(d,e,j);}return f.map((k,l)=>{if(l===e){return d(f[e]);}return k;});}function any(m,n){if(n===void 0){return o=>any(m,o);}let p=0;while(p<n.length){if(m(n[p])){return!0;}p++;}return!1;}function append(q,r){if(r===void 0){return s=>append(q,s);}const t=Array.from(r);t.push(q);return t;}function isFunction(u){return typeof u==="function";}function compose(){const v=arguments;let w=v.length;while(w--){if(!isFunction(v[w])){throw new TypeError();}}return function(){let x=arguments,y=v.length;while(y--){x=[v[y].apply(this,x)];}return x[0];};}function contains(z,A){if(A===void 0){return B=>contains(z,B);}let C=-1,D=!1;while(++C<A.length&&!D){if(equals(A[C],z)){D=!0;}}return D;}function filter(E,F){if(F===void 0){return G=>filter(E,G);}let H=-1,I=0;const J=F.length,K=[];while(++H<J){const L=F[H];if(E(L)){K[I++]=L;}}return K;}function find(M,N){if(N===void 0){return O=>find(M,O);}return N.find(M);}function findIndex(P,Q){if(Q===void 0){return R=>findIndex(P,R);}const S=Q.length;let T=-1;while(++T<S){if(P(Q[T])){return T;}}return-1;}function flatten(U,V){V=V===void 0?[]:V;for(let i=0;i<U.length;i++){if(Array.isArray(U[i])){flatten(U[i],V);}else{V.push(U[i]);}}return V;}function drop(W,a){if(a===void 0){return X=>drop(W,X);}return a.slice(W);}function dropLast(Y,a){if(a===void 0){return Z=>dropLast(Y,Z);}return a.slice(0,-Y);}function equals(a,b){if(b===void 0){return a1=>equals(a,a1);}else if(a===b){return a!==0||1/a===1/b;}const b1=type(a);if(b1!==type(b)){return!1;}if(b1==="Array"){const c1=Array.from(a),d1=Array.from(b);return c1.sort().toString()===d1.sort().toString();}if(b1==="Object"){const e1=Object.keys(a);if(e1.length===Object.keys(b).length){if(e1.length===0){return!0;}let f1=!0;e1.map(g1=>{if(f1){const h1=type(a[g1]),i1=type(b[g1]);if(h1===i1){if(h1==="Object"){if(Object.keys(a[g1]).length===Object.keys(b[g1]).length){if(Object.keys(a[g1]).length!==0){if(!equals(a[g1],b[g1])){f1=!1;}}}else{f1=!1;}}else if(!equals(a[g1],b[g1])){f1=!1;}}else{f1=!1;}}});return f1;}}return!1;}function has(j1,k1){if(k1===void 0){return l1=>has(j1,l1);}return k1[j1]!==void 0;}function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}function indexOf(m1,n1){if(n1===void 0){return o1=>indexOf(m1,o1);}let p1=-1;const q1=n1.length;while(++p1<q1){if(n1[p1]===m1){return p1;}}return-1;}function baseSlice(r1,s1,t1){let u1=-1,v1=r1.length;t1=t1>v1?v1:t1;if(t1<0){t1+=v1;}v1=s1>t1?0:t1-s1>>>0;s1>>>=0;const w1=Array(v1);while(++u1<v1){w1[u1]=r1[u1+s1];}return w1;}function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function join(x1,y1){if(y1===void 0){return z1=>join(x1,z1);}return y1.join(x1);}function map(fn,B1){if(B1===void 0){return C1=>map(fn,C1);}let D1=-1;const E1=B1.length,F1=Array(E1);while(++D1<E1){F1[D1]=fn(B1[D1]);}return F1;}function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}function length(G1){return G1.length;}function match(H1,I1){if(I1===void 0){return J1=>match(H1,J1);}const K1=I1.match(H1);return K1===null?[]:K1;}function merge(L1,M1){if(M1===void 0){return N1=>merge(L1,N1);}return Object.assign({},L1,M1);}function omit(O1,P1){if(P1===void 0){return Q1=>omit(O1,Q1);}const R1={};for(key in P1){if(!O1.includes(key)){R1[key]=P1[key];}}return R1;}function path(S1,T1){if(T1===void 0){return U1=>path(S1,U1);}let V1=T1,W1=0;while(W1<S1.length){if(V1===null){return void 0;}V1=V1[S1[W1]];W1++;}return V1;}function pick(X1,Y1){if(Y1===void 0){return Z1=>pick(X1,Z1);}const a2={};let b2=0;while(b2<X1.length){if(X1[b2]in Y1){a2[X1[b2]]=Y1[X1[b2]];}b2++;}return a2;}function pluck(c2,d2){if(d2===void 0){return e2=>pluck(c2,e2);}const f2=[];map(g2=>{if(!(g2[c2]===void 0)){f2.push(g2[c2]);}},d2);return f2;}function prepend(h2,i2){if(i2===void 0){return j2=>prepend(h2,j2);}const k2=Array.from(i2);k2.unshift(h2);return k2;}function prop(l2,m2){if(m2===void 0){return n2=>prop(l2,n2);}return m2[l2];}function propEq(o2,p2,q2){if(p2===void 0){return(r2,s2)=>propEq(o2,r2,s2);}else if(q2===void 0){return t2=>propEq(o2,p2,t2);}return q2[o2]===p2;}function range(u2,v2){const w2=[];for(let i=u2;i<v2;i++){w2.push(i);}return w2;}function repeat(a,x2){if(x2===void 0){return y2=>repeat(a,y2);}const z2=Array(x2);return z2.fill(a);}function replace(A2,B2,C2){if(B2===void 0){return(D2,E2)=>replace(A2,D2,E2);}else if(C2===void 0){return F2=>replace(A2,B2,F2);}return C2.replace(A2,B2);}function subtract(a,b){if(b===void 0){return G2=>subtract(a,G2);}return a-b;}function sort(fn,I2){if(I2===void 0){return J2=>sort(fn,J2);}const K2=Array.from(I2);return K2.sort(fn);}function sortBy(fn,M2){if(M2===void 0){return N2=>sortBy(fn,N2);}const O2=Array.from(M2);return O2.sort((a,b)=>{const P2=fn(a),Q2=fn(b);return P2<Q2?-1:P2>Q2?1:0;});}function split(R2,S2){if(S2===void 0){return T2=>split(R2,T2);}return S2.split(R2);}function splitEvery(U2,a){if(a===void 0){return V2=>splitEvery(U2,V2);}U2=U2>1?U2:1;const W2=[];let X2=0;while(X2<a.length){W2.push(a.slice(X2,X2+=U2));}return W2;}function tail(Y2){return drop(1,Y2);}function take(Z2,a){if(a===void 0){return a3=>take(Z2,a3);}else if(typeof a==="string"){return a.slice(0,Z2);}return baseSlice(a,0,Z2);}function takeLast(b3,a){if(a===void 0){return c3=>takeLast(b3,c3);}const d3=a.length;b3=b3>d3?d3:b3;if(typeof a==="string"){return a.slice(d3-b3);}b3=d3-b3;return baseSlice(a,b3,d3);}function toLower(e3){return e3.toLowerCase();}function toUpper(f3){return f3.toUpperCase();}function test(g3,h3){if(h3===void 0){return i3=>test(g3,i3);}return h3.search(g3)===-1?!1:!0;}function trim(j3){return j3.trim();}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 k3=a.toString();if(k3.startsWith("async")){return"Async";}else if(k3.includes("function")||k3.includes("=>")){return"Function";}return"Object";}function values(l3){const m3=[];for(key in l3){m3.push(l3[key]);}return m3;}function uniq(n3){let o3=-1;const p3=[];while(++o3<n3.length){const q3=n3[o3];if(!contains(q3,p3)){p3.push(q3);}}return p3;}function update(r3,s3,t3){if(s3===void 0){return(u3,v3)=>update(r3,u3,v3);}else if(t3===void 0){return w3=>update(r3,s3,w3);}const x3=Array.from(t3);return x3.fill(s3,r3,r3+1);}function defaultTo(y3,z3){if(arguments.length===1){return A3=>defaultTo(y3,A3);}return z3===void 0||!(type(z3)===type(y3))?y3:z3;}function curry(fn,C3={}){return D3=>{if(type(fn)==="Async"){return new Promise((E3,F3)=>{fn(merge(D3,C3)).then(E3).catch(F3);});}return fn(merge(D3,C3));};}exports.add=add;exports.adjust=adjust;exports.any=any;exports.append=append;exports.compose=compose;exports.contains=contains;exports.curry=curry;exports.defaultTo=defaultTo;exports.drop=drop;exports.dropLast=dropLast;exports.equals=equals;exports.filter=filter;exports.find=find;exports.findIndex=findIndex;exports.flatten=flatten;exports.has=has;exports.head=head;exports.indexOf=indexOf;exports.init=init;exports.join=join;exports.last=last;exports.length=length;exports.map=map;exports.match=match;exports.merge=merge;exports.omit=omit;exports.path=path;exports.pick=pick;exports.pluck=pluck;exports.prepend=prepend;exports.prop=prop;exports.propEq=propEq;exports.range=range;exports.repeat=repeat;exports.replace=replace;exports.sort=sort;exports.sortBy=sortBy;exports.split=split;exports.splitEvery=splitEvery;exports.subtract=subtract;exports.tail=tail;exports.take=take;exports.takeLast=takeLast;exports.test=test;exports.toLower=toLower;exports.toUpper=toUpper;exports.trim=trim;exports.type=type;exports.uniq=uniq;exports.update=update;exports.values=values;
{
"name": "rambda",
"version": "0.5.10",
"version": "0.5.11",
"description": "Lightweight alternative to Ramda",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -45,3 +45,3 @@ function add(a, b){

}
const clone = arr
const clone = Array.from(arr)
clone.push(val)

@@ -186,4 +186,4 @@

if (aType === "Array") {
const aClone = a
const bClone = b
const aClone = Array.from(a)
const bClone = Array.from(b)

@@ -418,3 +418,3 @@ return aClone.sort().toString() === bClone.sort().toString()

const clone = arr
const clone = Array.from(arr)
clone.unshift(val)

@@ -421,0 +421,0 @@

@@ -34,3 +34,3 @@ [![Build Status](https://travis-ci.org/selfrefactor/ils.svg?branch=master)](https://travis-ci.org/selfrefactor/rambda)

```
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.5.10/webVersion.js
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.5.11/webVersion.js
```

@@ -37,0 +37,0 @@

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

(function webpackUniversalModuleDefinition(d,e){if(typeof exports==='object'&&typeof module==='object')module.exports=e();else if(typeof define==='function'&&define.amd)define([],e);else{var a=e();for(var i in a)(typeof exports==='object'?exports:d)[i]=a[i];}})(this,function(){return function(f){var g={};function __webpack_require__(h){if(g[h]){return g[h].exports;}var j=g[h]={i:h,l:!1,exports:{}};f[h].call(j.exports,j,j.exports,__webpack_require__);j.l=!0;return j.exports;}__webpack_require__.m=f;__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(o){var p=o&&o.__esModule?function getDefault(){return o['default'];}:function getModuleExports(){return o;};__webpack_require__.d(p,'a',p);return p;};__webpack_require__.o=function(q,r){return Object.prototype.hasOwnProperty.call(q,r);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=1);}([function(s,t){function add(a,b){if(b===void 0){return c=>add(a,c);}return a+b;}function adjust(u,v,w){if(v===void 0){return(x,y)=>adjust(u,x,y);}else if(w===void 0){return z=>adjust(u,v,z);}return w.map((A,B)=>{if(B===v){return u(w[v]);}return A;});}function any(C,D){if(D===void 0){return E=>any(C,E);}let F=0;while(F<D.length){if(C(D[F])){return!0;}F++;}return!1;}function append(G,H){if(H===void 0){return I=>append(G,I);}const J=H;J.push(G);return J;}function isFunction(K){return typeof K==="function";}function compose(){const L=arguments;let M=L.length;while(M--){if(!isFunction(L[M])){throw new TypeError();}}return function(){let N=arguments,O=L.length;while(O--){N=[L[O].apply(this,N)];}return N[0];};}function contains(P,Q){if(Q===void 0){return R=>contains(P,R);}let S=-1,T=!1;while(++S<Q.length&&!T){if(equals(Q[S],P)){T=!0;}}return T;}function filter(U,V){if(V===void 0){return W=>filter(U,W);}let X=-1,Y=0;const Z=V.length,a1=[];while(++X<Z){const b1=V[X];if(U(b1)){a1[Y++]=b1;}}return a1;}function find(fn,d1){if(d1===void 0){return e1=>find(fn,e1);}return d1.find(fn);}function findIndex(fn,g1){if(g1===void 0){return h1=>findIndex(fn,h1);}const i1=g1.length;let j1=-1;while(++j1<i1){if(fn(g1[j1])){return j1;}}return-1;}function flatten(k1,l1){l1=l1===void 0?[]:l1;for(let i=0;i<k1.length;i++){if(Array.isArray(k1[i])){flatten(k1[i],l1);}else{l1.push(k1[i]);}}return l1;}function drop(m1,a){if(a===void 0){return n1=>drop(m1,n1);}return a.slice(m1);}function dropLast(o1,a){if(a===void 0){return p1=>dropLast(o1,p1);}return a.slice(0,-o1);}function equals(a,b){if(b===void 0){return q1=>equals(a,q1);}else if(a===b){return a!==0||1/a===1/b;}const r1=type(a);if(r1!==type(b)){return!1;}if(r1==="Array"){const s1=a,t1=b;return s1.sort().toString()===t1.sort().toString();}if(r1==="Object"){const u1=Object.keys(a);if(u1.length===Object.keys(b).length){if(u1.length===0){return!0;}let v1=!0;u1.map(w1=>{if(v1){const x1=type(a[w1]),y1=type(b[w1]);if(x1===y1){if(x1==="Object"){if(Object.keys(a[w1]).length===Object.keys(b[w1]).length){if(Object.keys(a[w1]).length!==0){if(!equals(a[w1],b[w1])){v1=!1;}}}else{v1=!1;}}else if(!equals(a[w1],b[w1])){v1=!1;}}else{v1=!1;}}});return v1;}}return!1;}function has(z1,A1){if(A1===void 0){return B1=>has(z1,B1);}return A1[z1]!==void 0;}function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}function indexOf(C1,D1){if(D1===void 0){return E1=>indexOf(C1,E1);}let F1=-1;const G1=D1.length;while(++F1<G1){if(D1[F1]===C1){return F1;}}return-1;}function baseSlice(H1,I1,J1){let K1=-1,L1=H1.length;J1=J1>L1?L1:J1;if(J1<0){J1+=L1;}L1=I1>J1?0:J1-I1>>>0;I1>>>=0;const M1=Array(L1);while(++K1<L1){M1[K1]=H1[K1+I1];}return M1;}function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function join(N1,O1){if(O1===void 0){return P1=>join(N1,P1);}return O1.join(N1);}function map(fn,R1){if(R1===void 0){return S1=>map(fn,S1);}let T1=-1;const U1=R1.length,V1=Array(U1);while(++T1<U1){V1[T1]=fn(R1[T1]);}return V1;}function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}function length(W1){return W1.length;}function match(X1,Y1){if(Y1===void 0){return Z1=>match(X1,Z1);}const a2=Y1.match(X1);return a2===null?[]:a2;}function merge(b2,c2){if(c2===void 0){return d2=>merge(b2,d2);}return Object.assign({},b2,c2);}function omit(e2,f2){if(f2===void 0){return g2=>omit(e2,g2);}const h2={};for(key in f2){if(!e2.includes(key)){h2[key]=f2[key];}}return h2;}function path(i2,j2){if(j2===void 0){return k2=>path(i2,k2);}let l2=j2,m2=0;while(m2<i2.length){if(l2===null){return void 0;}l2=l2[i2[m2]];m2++;}return l2;}function pick(n2,o2){if(o2===void 0){return p2=>pick(n2,p2);}const q2={};let r2=0;while(r2<n2.length){if(n2[r2]in o2){q2[n2[r2]]=o2[n2[r2]];}r2++;}return q2;}function pluck(s2,t2){if(t2===void 0){return u2=>pluck(s2,u2);}const v2=[];map(w2=>{if(!(w2[s2]===void 0)){v2.push(w2[s2]);}},t2);return v2;}function prepend(x2,y2){if(y2===void 0){return z2=>prepend(x2,z2);}const A2=y2;A2.unshift(x2);return A2;}function prop(B2,C2){if(C2===void 0){return D2=>prop(B2,D2);}return C2[B2];}function propEq(E2,F2,G2){if(F2===void 0){return(H2,I2)=>propEq(E2,H2,I2);}else if(G2===void 0){return J2=>propEq(E2,F2,J2);}return G2[E2]===F2;}function range(K2,L2){const M2=[];for(let i=K2;i<L2;i++){M2.push(i);}return M2;}function repeat(a,N2){if(N2===void 0){return O2=>repeat(a,O2);}const P2=Array(N2);return P2.fill(a);}function replace(Q2,R2,S2){if(R2===void 0){return(T2,U2)=>replace(Q2,T2,U2);}else if(S2===void 0){return V2=>replace(Q2,R2,V2);}return S2.replace(Q2,R2);}function subtract(a,b){if(b===void 0){return W2=>subtract(a,W2);}return a-b;}function sort(fn,Y2){if(Y2===void 0){return Z2=>sort(fn,Z2);}const a3=Array.from(Y2);return a3.sort(fn);}function sortBy(fn,c3){if(c3===void 0){return d3=>sortBy(fn,d3);}const e3=Array.from(c3);return e3.sort((a,b)=>{const f3=fn(a),g3=fn(b);return f3<g3?-1:f3>g3?1:0;});}function split(h3,i3){if(i3===void 0){return j3=>split(h3,j3);}return i3.split(h3);}function splitEvery(k3,a){if(a===void 0){return l3=>splitEvery(k3,l3);}k3=k3>1?k3:1;const m3=[];let n3=0;while(n3<a.length){m3.push(a.slice(n3,n3+=k3));}return m3;}function tail(o3){return drop(1,o3);}function take(p3,a){if(a===void 0){return q3=>take(p3,q3);}else if(typeof a==="string"){return a.slice(0,p3);}return baseSlice(a,0,p3);}function takeLast(r3,a){if(a===void 0){return s3=>takeLast(r3,s3);}const t3=a.length;r3=r3>t3?t3:r3;if(typeof a==="string"){return a.slice(t3-r3);}r3=t3-r3;return baseSlice(a,r3,t3);}function toLower(u3){return u3.toLowerCase();}function toUpper(v3){return v3.toUpperCase();}function test(w3,x3){if(x3===void 0){return y3=>test(w3,y3);}return x3.search(w3)===-1?!1:!0;}function trim(z3){return z3.trim();}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 A3=a.toString();if(A3.startsWith("async")){return"Async";}else if(A3.includes("function")||A3.includes("=>")){return"Function";}return"Object";}function values(B3){const C3=[];for(key in B3){C3.push(B3[key]);}return C3;}function uniq(D3){let E3=-1;const F3=[];while(++E3<D3.length){const G3=D3[E3];if(!contains(G3,F3)){F3.push(G3);}}return F3;}function update(H3,I3,J3){if(I3===void 0){return(K3,L3)=>update(H3,K3,L3);}else if(J3===void 0){return M3=>update(H3,I3,M3);}const N3=Array.from(J3);return N3.fill(I3,H3,H3+1);}function defaultTo(O3,P3){if(arguments.length===1){return Q3=>defaultTo(O3,Q3);}return P3===void 0||!(type(P3)===type(O3))?O3:P3;}function curry(fn,S3={}){return T3=>{if(type(fn)==="Async"){return new Promise((U3,V3)=>{fn(merge(T3,S3)).then(U3).catch(V3);});}return fn(merge(T3,S3));};}t.add=add;t.adjust=adjust;t.any=any;t.append=append;t.compose=compose;t.contains=contains;t.curry=curry;t.defaultTo=defaultTo;t.drop=drop;t.dropLast=dropLast;t.equals=equals;t.filter=filter;t.find=find;t.findIndex=findIndex;t.flatten=flatten;t.has=has;t.head=head;t.indexOf=indexOf;t.init=init;t.join=join;t.last=last;t.length=length;t.map=map;t.match=match;t.merge=merge;t.omit=omit;t.path=path;t.pick=pick;t.pluck=pluck;t.prepend=prepend;t.prop=prop;t.propEq=propEq;t.range=range;t.repeat=repeat;t.replace=replace;t.sort=sort;t.sortBy=sortBy;t.split=split;t.splitEvery=splitEvery;t.subtract=subtract;t.tail=tail;t.take=take;t.takeLast=takeLast;t.test=test;t.toLower=toLower;t.toUpper=toUpper;t.trim=trim;t.type=type;t.uniq=uniq;t.update=update;t.values=values;},function(W3,X3,Y3){const Z3=Y3(0);W3.exports.R=Z3;}]);});
(function webpackUniversalModuleDefinition(d,e){if(typeof exports==='object'&&typeof module==='object')module.exports=e();else if(typeof define==='function'&&define.amd)define([],e);else{var a=e();for(var i in a)(typeof exports==='object'?exports:d)[i]=a[i];}})(this,function(){return function(f){var g={};function __webpack_require__(h){if(g[h]){return g[h].exports;}var j=g[h]={i:h,l:!1,exports:{}};f[h].call(j.exports,j,j.exports,__webpack_require__);j.l=!0;return j.exports;}__webpack_require__.m=f;__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(o){var p=o&&o.__esModule?function getDefault(){return o['default'];}:function getModuleExports(){return o;};__webpack_require__.d(p,'a',p);return p;};__webpack_require__.o=function(q,r){return Object.prototype.hasOwnProperty.call(q,r);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=1);}([function(s,t){function add(a,b){if(b===void 0){return c=>add(a,c);}return a+b;}function adjust(u,v,w){if(v===void 0){return(x,y)=>adjust(u,x,y);}else if(w===void 0){return z=>adjust(u,v,z);}return w.map((A,B)=>{if(B===v){return u(w[v]);}return A;});}function any(C,D){if(D===void 0){return E=>any(C,E);}let F=0;while(F<D.length){if(C(D[F])){return!0;}F++;}return!1;}function append(G,H){if(H===void 0){return I=>append(G,I);}const J=Array.from(H);J.push(G);return J;}function isFunction(K){return typeof K==="function";}function compose(){const L=arguments;let M=L.length;while(M--){if(!isFunction(L[M])){throw new TypeError();}}return function(){let N=arguments,O=L.length;while(O--){N=[L[O].apply(this,N)];}return N[0];};}function contains(P,Q){if(Q===void 0){return R=>contains(P,R);}let S=-1,T=!1;while(++S<Q.length&&!T){if(equals(Q[S],P)){T=!0;}}return T;}function filter(U,V){if(V===void 0){return W=>filter(U,W);}let X=-1,Y=0;const Z=V.length,a1=[];while(++X<Z){const b1=V[X];if(U(b1)){a1[Y++]=b1;}}return a1;}function find(fn,d1){if(d1===void 0){return e1=>find(fn,e1);}return d1.find(fn);}function findIndex(fn,g1){if(g1===void 0){return h1=>findIndex(fn,h1);}const i1=g1.length;let j1=-1;while(++j1<i1){if(fn(g1[j1])){return j1;}}return-1;}function flatten(k1,l1){l1=l1===void 0?[]:l1;for(let i=0;i<k1.length;i++){if(Array.isArray(k1[i])){flatten(k1[i],l1);}else{l1.push(k1[i]);}}return l1;}function drop(m1,a){if(a===void 0){return n1=>drop(m1,n1);}return a.slice(m1);}function dropLast(o1,a){if(a===void 0){return p1=>dropLast(o1,p1);}return a.slice(0,-o1);}function equals(a,b){if(b===void 0){return q1=>equals(a,q1);}else if(a===b){return a!==0||1/a===1/b;}const r1=type(a);if(r1!==type(b)){return!1;}if(r1==="Array"){const s1=Array.from(a),t1=Array.from(b);return s1.sort().toString()===t1.sort().toString();}if(r1==="Object"){const u1=Object.keys(a);if(u1.length===Object.keys(b).length){if(u1.length===0){return!0;}let v1=!0;u1.map(w1=>{if(v1){const x1=type(a[w1]),y1=type(b[w1]);if(x1===y1){if(x1==="Object"){if(Object.keys(a[w1]).length===Object.keys(b[w1]).length){if(Object.keys(a[w1]).length!==0){if(!equals(a[w1],b[w1])){v1=!1;}}}else{v1=!1;}}else if(!equals(a[w1],b[w1])){v1=!1;}}else{v1=!1;}}});return v1;}}return!1;}function has(z1,A1){if(A1===void 0){return B1=>has(z1,B1);}return A1[z1]!==void 0;}function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}function indexOf(C1,D1){if(D1===void 0){return E1=>indexOf(C1,E1);}let F1=-1;const G1=D1.length;while(++F1<G1){if(D1[F1]===C1){return F1;}}return-1;}function baseSlice(H1,I1,J1){let K1=-1,L1=H1.length;J1=J1>L1?L1:J1;if(J1<0){J1+=L1;}L1=I1>J1?0:J1-I1>>>0;I1>>>=0;const M1=Array(L1);while(++K1<L1){M1[K1]=H1[K1+I1];}return M1;}function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function join(N1,O1){if(O1===void 0){return P1=>join(N1,P1);}return O1.join(N1);}function map(fn,R1){if(R1===void 0){return S1=>map(fn,S1);}let T1=-1;const U1=R1.length,V1=Array(U1);while(++T1<U1){V1[T1]=fn(R1[T1]);}return V1;}function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}function length(W1){return W1.length;}function match(X1,Y1){if(Y1===void 0){return Z1=>match(X1,Z1);}const a2=Y1.match(X1);return a2===null?[]:a2;}function merge(b2,c2){if(c2===void 0){return d2=>merge(b2,d2);}return Object.assign({},b2,c2);}function omit(e2,f2){if(f2===void 0){return g2=>omit(e2,g2);}const h2={};for(key in f2){if(!e2.includes(key)){h2[key]=f2[key];}}return h2;}function path(i2,j2){if(j2===void 0){return k2=>path(i2,k2);}let l2=j2,m2=0;while(m2<i2.length){if(l2===null){return void 0;}l2=l2[i2[m2]];m2++;}return l2;}function pick(n2,o2){if(o2===void 0){return p2=>pick(n2,p2);}const q2={};let r2=0;while(r2<n2.length){if(n2[r2]in o2){q2[n2[r2]]=o2[n2[r2]];}r2++;}return q2;}function pluck(s2,t2){if(t2===void 0){return u2=>pluck(s2,u2);}const v2=[];map(w2=>{if(!(w2[s2]===void 0)){v2.push(w2[s2]);}},t2);return v2;}function prepend(x2,y2){if(y2===void 0){return z2=>prepend(x2,z2);}const A2=Array.from(y2);A2.unshift(x2);return A2;}function prop(B2,C2){if(C2===void 0){return D2=>prop(B2,D2);}return C2[B2];}function propEq(E2,F2,G2){if(F2===void 0){return(H2,I2)=>propEq(E2,H2,I2);}else if(G2===void 0){return J2=>propEq(E2,F2,J2);}return G2[E2]===F2;}function range(K2,L2){const M2=[];for(let i=K2;i<L2;i++){M2.push(i);}return M2;}function repeat(a,N2){if(N2===void 0){return O2=>repeat(a,O2);}const P2=Array(N2);return P2.fill(a);}function replace(Q2,R2,S2){if(R2===void 0){return(T2,U2)=>replace(Q2,T2,U2);}else if(S2===void 0){return V2=>replace(Q2,R2,V2);}return S2.replace(Q2,R2);}function subtract(a,b){if(b===void 0){return W2=>subtract(a,W2);}return a-b;}function sort(fn,Y2){if(Y2===void 0){return Z2=>sort(fn,Z2);}const a3=Array.from(Y2);return a3.sort(fn);}function sortBy(fn,c3){if(c3===void 0){return d3=>sortBy(fn,d3);}const e3=Array.from(c3);return e3.sort((a,b)=>{const f3=fn(a),g3=fn(b);return f3<g3?-1:f3>g3?1:0;});}function split(h3,i3){if(i3===void 0){return j3=>split(h3,j3);}return i3.split(h3);}function splitEvery(k3,a){if(a===void 0){return l3=>splitEvery(k3,l3);}k3=k3>1?k3:1;const m3=[];let n3=0;while(n3<a.length){m3.push(a.slice(n3,n3+=k3));}return m3;}function tail(o3){return drop(1,o3);}function take(p3,a){if(a===void 0){return q3=>take(p3,q3);}else if(typeof a==="string"){return a.slice(0,p3);}return baseSlice(a,0,p3);}function takeLast(r3,a){if(a===void 0){return s3=>takeLast(r3,s3);}const t3=a.length;r3=r3>t3?t3:r3;if(typeof a==="string"){return a.slice(t3-r3);}r3=t3-r3;return baseSlice(a,r3,t3);}function toLower(u3){return u3.toLowerCase();}function toUpper(v3){return v3.toUpperCase();}function test(w3,x3){if(x3===void 0){return y3=>test(w3,y3);}return x3.search(w3)===-1?!1:!0;}function trim(z3){return z3.trim();}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 A3=a.toString();if(A3.startsWith("async")){return"Async";}else if(A3.includes("function")||A3.includes("=>")){return"Function";}return"Object";}function values(B3){const C3=[];for(key in B3){C3.push(B3[key]);}return C3;}function uniq(D3){let E3=-1;const F3=[];while(++E3<D3.length){const G3=D3[E3];if(!contains(G3,F3)){F3.push(G3);}}return F3;}function update(H3,I3,J3){if(I3===void 0){return(K3,L3)=>update(H3,K3,L3);}else if(J3===void 0){return M3=>update(H3,I3,M3);}const N3=Array.from(J3);return N3.fill(I3,H3,H3+1);}function defaultTo(O3,P3){if(arguments.length===1){return Q3=>defaultTo(O3,Q3);}return P3===void 0||!(type(P3)===type(O3))?O3:P3;}function curry(fn,S3={}){return T3=>{if(type(fn)==="Async"){return new Promise((U3,V3)=>{fn(merge(T3,S3)).then(U3).catch(V3);});}return fn(merge(T3,S3));};}t.add=add;t.adjust=adjust;t.any=any;t.append=append;t.compose=compose;t.contains=contains;t.curry=curry;t.defaultTo=defaultTo;t.drop=drop;t.dropLast=dropLast;t.equals=equals;t.filter=filter;t.find=find;t.findIndex=findIndex;t.flatten=flatten;t.has=has;t.head=head;t.indexOf=indexOf;t.init=init;t.join=join;t.last=last;t.length=length;t.map=map;t.match=match;t.merge=merge;t.omit=omit;t.path=path;t.pick=pick;t.pluck=pluck;t.prepend=prepend;t.prop=prop;t.propEq=propEq;t.range=range;t.repeat=repeat;t.replace=replace;t.sort=sort;t.sortBy=sortBy;t.split=split;t.splitEvery=splitEvery;t.subtract=subtract;t.tail=tail;t.take=take;t.takeLast=takeLast;t.test=test;t.toLower=toLower;t.toUpper=toUpper;t.trim=trim;t.type=type;t.uniq=uniq;t.update=update;t.values=values;},function(W3,X3,Y3){const Z3=Y3(0);W3.exports.R=Z3;}]);});
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