Code coverage report for master/strLeftBack.js

Statements: 100% (6 / 6)      Branches: 100% (2 / 2)      Functions: 100% (1 / 1)      Lines: 100% (6 / 6)      Ignored: none     

All files » master/ » strLeftBack.js
1 2 3 4 5 6 7 8 91   1 9 9 9 9    
var makeString = require('./helper/makeString');
 
module.exports = function strLeftBack(str, sep) {
  str = makeString(str);
  sep = makeString(sep);
  var pos = str.lastIndexOf(sep);
  return~ pos ? str.slice(0, pos) : str;
};