MCPcopy Index your code
hub / github.com/parse-community/parse-server / createStore

Function createStore

src/triggers.js:30–32  ·  view source on GitHub ↗

* Creates a prototype-free object for use as a lookup store. * This prevents prototype chain properties (e.g. `constructor`, `toString`) * from being resolved as registered handlers when using bracket notation * for lookups. Always use this instead of `{}` for handler stores.

()

Source from the content-addressed store, hash-verified

28 * for lookups. Always use this instead of `{}` for handler stores.
29 */
30function createStore() {
31 return Object.create(null);
32}
33
34const baseStore = function () {
35 const Validators = Object.keys(Types).reduce(function (base, key) {

Callers 2

baseStoreFunction · 0.85
getStoreFunction · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected