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