String.prototype.before >= 0.1.2
Purpose
Return the string before the given needle
Syntax
String#before
(
Stringneedle
Booleanfirst= true
);
Parameters
needle
- The string to look for
first
- Get from the first or last
Return values
String
Comments