Share your code. Components are building blocks, you are the architect.

utils/starts-with
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Checks if a list starts with the provided sublist

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/starts-with in your project
npm i @bit/bit.ramda.utils.starts-with
Copied

startsWith (prefix:*, list:*) : Boolean

Checks if a list starts with the provided sublist.

Similarly, checks if a string starts with the provided substring.

Example

R.startsWith('a', 'abc')                //=> true
     R.startsWith('b', 'abc')                //=> false
     R.startsWith(['a'], ['a', 'b', 'c'])    //=> true
     R.startsWith(['b'], ['a', 'b', 'c'])    //=> false

Arguments

prefix: *

list: *

Returns

Boolean