UNPKG

@lskjs/log

Version:

Логгер совмещающий лучшие черты morgan, winston, bunyan, logrus. debug. Базируется на debug-level.

24 lines (20 loc) 546 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hashCode = exports["default"] = void 0; /** * NOTE: copied from @lskjs utils */ /* eslint-disable no-bitwise */ var hashCode = function hashCode(s) { if (typeof s === 'number') return s; return Math.abs(String(s).split('').reduce(function (a, b) { var c = (a << 5) - a + b.charCodeAt(0); return c & c; }, 0) - 48); }; exports.hashCode = hashCode; var _default = hashCode; exports["default"] = _default; //# sourceMappingURL=hashCode.js.map