spaCy/website/_includes/_functions.jade

12 lines
325 B
Plaintext
Raw Normal View History

2016-10-03 18:19:13 +00:00
//- ----------------------------------
//- 💫 INCLUDES > FUNCTIONS
//- ----------------------------------
2016-03-31 14:24:48 +00:00
2016-10-03 18:19:13 +00:00
//- Add prefixes to items of an array (for modifier CSS classes)
2016-03-31 14:24:48 +00:00
- function prefixArgs(array, prefix) {
2016-10-03 18:19:13 +00:00
- return array.map(function(arg) {
- return prefix + '--' + arg;
- }).join(' ');
2016-03-31 14:24:48 +00:00
- }