Module

x/lodash_es/src/string.js>words

lodash for deno use
Latest
function words
import { words } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/string.js";

Splits string into an array of its words.

Examples

_.words('fred, barney, & pebbles'); // => ['fred', 'barney', 'pebbles']

_.words('fred, barney, & pebbles', /[^, ]+/g); // => ['fred', 'barney', '&', 'pebbles']

Parameters

string
pattern
guard