UNPKG

@belgattitude/http-exception

Version:

Warning: has been moved to @httpx/exception. Please update.

10 lines (8 loc) 288 B
var getMsgFromCls = function getMsgFromCls(className) { return className.replace(/[A-Z]/g, function (match) { return " ".concat(match); }).trim().split(' ').map(function (word, idx) { return idx === 0 ? word : word.toLowerCase(); }).join(' '); }; export { getMsgFromCls };