Sha256: 7769c4c6c7d6f64f76dcea529941b3e78c2a99e3376db525488014570665cffd

Contents?: true

Size: 232 Bytes

Versions: 19

Compression:

Stored size: 232 Bytes

Contents

var makeString = require('./helper/makeString');

module.exports = function strLeft(str, sep) {
  str = makeString(str);
  sep = makeString(sep);
  var pos = !sep ? -1 : str.indexOf(sep);
  return~ pos ? str.slice(0, pos) : str;
};

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ela-4.1.6 node_modules/underscore.string/strLeft.js
ela-4.1.5 node_modules/underscore.string/strLeft.js
ela-4.1.4 node_modules/underscore.string/strLeft.js
ela-4.1.3 node_modules/underscore.string/strLeft.js
ela-4.1.2 node_modules/underscore.string/strLeft.js
ela-4.1.1 node_modules/underscore.string/strLeft.js
ela-4.1.0 node_modules/underscore.string/strLeft.js
ela-4.0.0 node_modules/underscore.string/strLeft.js
ela-3.4.3 node_modules/underscore.string/strLeft.js
ela-3.4.2 node_modules/underscore.string/strLeft.js
ela-3.4.0 node_modules/underscore.string/strLeft.js
ela-3.3.1 node_modules/underscore.string/strLeft.js
ela-3.3.0 node_modules/underscore.string/strLeft.js
ela-3.2.0 node_modules/underscore.string/strLeft.js
ela-3.1.1 node_modules/underscore.string/strLeft.js
ela-3.1.0 node_modules/underscore.string/strLeft.js
ela-3.0.0 node_modules/underscore.string/strLeft.js
ela-2.0.0 node_modules/underscore.string/strLeft.js
ela-1.1.0 node_modules/underscore.string/strLeft.js