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

Function getTrackByKey

06.Router/basic/js/vue.js:4589–4591  ·  view source on GitHub ↗

* Get the track by key for an item. * * @param {Number} index * @param {String} key * @param {*} value * @param {String} [trackByKey]

(index, key, value, trackByKey)

Source from the content-addressed store, hash-verified

4587 */
4588
4589 function getTrackByKey(index, key, value, trackByKey) {
4590 return trackByKey ? trackByKey === '$index' ? index : trackByKey.charAt(0).match(/\w/) ? getPath(value, trackByKey) : value[trackByKey] : key || value;
4591 }
4592
4593 if ('development' !== 'production') {
4594 vFor.warnDuplicate = function (value) {

Callers 1

vue.jsFile · 0.70

Calls 1

getPathFunction · 0.70

Tested by

no test coverage detected