Skip to content

js-java/string-hashcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

string-hashcode

NPM version build status Test coverage

Extra utilities for string.

Install

npm install string-hashcode

Example

var hashCode = require('string-hashcode');
var s = 'abc';

console.log(s.hashCode); // undefined
var code = hashCode(s);
console.log(s.hashCode); // Function

var code2 = s.hashCode();
assert.equal(code, code2);

API

hashCode(str)

params:

  • str: string object

return:

Number: hash code

Return a hash code of a string. Note that a hash code is immutable with a certain string.

Lisence

MIT

About

java.lang.String.hashCode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published