last-place-of
Version:
Return the last place of a given input in a given value.
1 lines • 420 B
JavaScript
(function () {var a={};Object.defineProperty(a,"__esModule",{value:!0});var b=void 0;a.lastPlaceOf=b;var c=function($,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$.length;return $.lastIndexOf(e,--t)+1};b=c,a.lastPlaceOf=b;var d=b;a.default=d;if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=a}else if(typeof define==="function"&&define.amd){define(function(){return a})}})();