Created
February 5, 2017 21:12
-
-
Save cmstead/837bcf73f87136bd6fe16eb6b25758f5 to your computer and use it in GitHub Desktop.
Simple helper for Stats API example code
This file contains hidden or 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
var viewHelper = (function () { | |
'use strict'; | |
function parseNumberValues (valueStr) { | |
return valueStr.trim().split(/[\s\,]+/).map(parseFloat); | |
} | |
return { | |
parseNumberValues: parseNumberValues | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment