spaCy/website/_includes/_functions.jade
2016-10-19 00:19:42 +02:00

12 lines
325 B
Plaintext

//- ----------------------------------
//- 💫 INCLUDES > FUNCTIONS
//- ----------------------------------
//- Add prefixes to items of an array (for modifier CSS classes)
- function prefixArgs(array, prefix) {
- return array.map(function(arg) {
- return prefix + '--' + arg;
- }).join(' ');
- }