String.prototype.before >= 0.1.2

Purpose

Return the string before the given needle

Syntax

String#before ( StringneedleBooleanfirst= true );

Parameters

needle

The string to look for

first

Get from the first or last

Return values

String

Examples

Comments