spaCy/website/_includes/_functions.jade

12 lines
325 B
Plaintext
Raw Normal View History

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