Skip to content

Collection of alot of string ultilities which I use all the time.

License

Notifications You must be signed in to change notification settings

edgarberlinck/string-utils

Repository files navigation

JavaScript Style Guide

String Utils

Collection of alot of string ultilities which I use all the time.

noSlug (string)

Return a new string without special characters and with lower case

Example

console.log(noSlug('Capitão'))
>> Should return 'capitao'

includeAll (target, term)

Return true if target contains all words in term

console.log(includeAll('Edgar Muniz Berlinck', 'Berlinck'))
>> Should return *true*
console.log(includeAll('Edgar Muniz Berlinck', 'Muniz Berlinck'))
>> Should return *true*
console.log(includeAll('Edgar Muniz Berlinck', 'Edgar Berlinck'))
>> Should return *true*
console.log(includeAll('Edgar Muniz Berlinck', 'Gostosão Berlinck'))
>> Should return *false*

About

Collection of alot of string ultilities which I use all the time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •