UNPKG

@gerhobbelt/mathjax-third-party-extensions

Version:

A list of MathJax extensions provided by third-party contributors

9 lines (7 loc) 263 B
var makeString = require('./helper/makeString'); module.exports = function strRightBack(str, sep) { str = makeString(str); sep = makeString(sep); var pos = !sep ? -1 : str.lastIndexOf(sep); return~ pos ? str.slice(pos + sep.length, str.length) : str; };