mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 21:57:15 +03:00
12 lines
325 B
Plaintext
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(' ');
|
|
- }
|