MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / def

Function def

06.Router/basic/js/vue.js:304–311  ·  view source on GitHub ↗

* Define a property. * * @param {Object} obj * @param {String} key * @param {*} val * @param {Boolean} [enumerable]

(obj, key, val, enumerable)

Source from the content-addressed store, hash-verified

302 */
303
304 function def(obj, key, val, enumerable) {
305 Object.defineProperty(obj, key, {
306 value: val,
307 enumerable: !!enumerable,
308 writable: true,
309 configurable: true
310 });
311 }
312
313 /**
314 * Debounce a function so it only gets called after the

Callers 3

vue.jsFile · 0.70
ObserverFunction · 0.70
copyAugmentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected