I was messing around with some ES6 code and came across this
let vendors = ['ms', 'moz', 'webkit', 'o'];
let root = window || global;
let performance = window.performance || {};
if (!performance.now) {
vendors.some(function(vendor) {
performance.now = performance[`$[vendor}Now`];
...
I can guess what the following code does, but what is the library / syntax? This is not what I have ever seen before, and it is not pure ES6, right?
`$[vendor}Now`
source
share