UNPKG

@sleekify/sleekify

Version:

A TypeScript decorator driven approach for developing web applications.

18 lines (17 loc) 469 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StringUtil = void 0; class StringUtil { static getHashCode(text) { let value = 0; if (text == null) { return value; } for (let index = 0; index < text.length; index++) { value = ((value << 5) - value) + text.charCodeAt(index); value |= 0; } return value; } } exports.StringUtil = StringUtil;