/get-first-words

get first word from sentence

Primary LanguageJavaScriptMIT LicenseMIT

get-first-words

Get first word from sentence

Installation

  yarn add get-first-words
  or
  npm install get-first-words

Usage

const gfw = require('get-first-words');

var sentence = "Get First Words";
console.log(gfw(sentence)); //return "Get"

Dev

node index.js

Run Test

npm test