Add eslint (#741)
This commit is contained in:
parent
953428cad5
commit
62417f7fb8
72 changed files with 305 additions and 323 deletions
|
|
@ -3,5 +3,5 @@ export function callOnce(fn) {
|
|||
|
||||
return (...args) => {
|
||||
called || fn(...args), called = true;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ const SEED = 0x1234;
|
|||
const M = 0xc6a4a793;
|
||||
const R = 16;
|
||||
|
||||
/* eslint no-fallthrough: off */
|
||||
|
||||
export function murmurHash1(str) {
|
||||
const buffer = new Buffer(str, 'utf8');
|
||||
var length = buffer.length;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue