efcsydney/efcsydney-roster

View on GitHub
client/src/resource/utils.js

Summary

Maintainability
A
0 mins
Test Coverage
import hash from 'string-hash';

export const getHashKey = (resource, params) => {
  return hash(
    JSON.stringify({
      name: resource.name,
      method: resource.method,
      params: params
    })
  );
};