0.0.5 • Published 5 years ago

word-break v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

word-break

word-break util using a given dictionary

TypeScript

import wordBreak from "word-break";

test("wordBreak", () => {
  const input = "ilikesamsung";
  const dict = ["samsung", "like", "i"];
  const list = wordBreak(input, dict);
  expect(list.join("|")).toBe("i|like|samsung");
});
0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago