Last active
January 17, 2018 09:17
-
-
Save Adam-Mould/16fc7f8b737cce2432d18c0818625d69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Analytics = {}; | |
// Pass n arguments using rest parameter | |
Analytics.trigger = (...params) => { | |
// console.log(typeof params); // object (Array) | |
// Spread parameter into CoreMetrics tag | |
cmCreateElementTag(...params); | |
}; | |
export default Analytics; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment