0.0.3 • Published 8 years ago

grup v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

grup

Travis Build
Status

Grouping for string arrays

const g = require('grup')

const lyrics = [
   "City's breaking down on a camel's back.",
   "They just have to go 'cause they don't know wack",
   "So all you fill the streets it's appealing to see",
   "You won't get out the county, 'cause you're bad and free",
   "You've got a new horizon it's ephemeral style.",
   "A melancholy town where we never smile.",
   "And all I wanna hear is the message beep.",
   "My dreams, they've got to kiss me 'cause I don't get sleep, no"]

console.log(g(lyrics, ["and", "you"]))

// log
{ you:
   [ 'So all you fill the streets it\'s appealing to see',
     'You won\'t get out the county, \'cause you\'re bad and free',
     'You\'ve got a new horizon it\'s ephemeral style.' ],
  and:
   [ 'You won\'t get out the county, \'cause you\'re bad and free',
     'And all I wanna hear is the message beep.' ] }