* Get the track by key for an item. * * @param {Number} index * @param {String} key * @param {*} value * @param {String} [trackByKey]
(index, key, value, trackByKey)
| 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) { |