• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MrSwitch / dare / #77

14 Jun 2026 12:08PM UTC coverage: 69.246% (-30.8%) from 100.0%
#77

push

web-flow
Merge pull request #458 from MrSwitch/next

fix(release): Version 100

339 of 499 branches covered (67.94%)

Branch coverage included in aggregate %.

487 of 512 new or added lines in 6 files covered. (95.12%)

1492 existing lines in 23 files now uncovered.

3437 of 4954 relevant lines covered (69.38%)

4.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

76.19
/src/utils/toArray.js
1
/**
9✔
2
 * ToArray - if a function is not already an Array, make it so
9✔
3
 * @param {*} a - The input value to convert to an array
9✔
4
 * @returns {Array} - The converted array
9✔
5
 * @example
9✔
6
 *  toArray('a,b,c') // ['a', 'b', 'c']
9✔
7
 *  toArray(['a', 'b', 'c']) // ['a', 'b', 'c']
9✔
8
 *  toArray(1) // [1]
9✔
9
 */
9✔
10
export default function toArray(a) {
9✔
11
        if (typeof a === 'string') {
2!
UNCOV
12
                a = a.split(',').map(s => s.trim());
×
13
        } else if (!Array.isArray(a)) {
2!
UNCOV
14
                a = [a];
×
UNCOV
15
        }
×
16
        return a;
2✔
17
}
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc