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

Haixing-Hu / js-logging / 9bb7716f-3504-4252-b427-1461667e96bd

09 Dec 2024 03:54AM UTC coverage: 86.102% (-2.0%) from 88.136%
9bb7716f-3504-4252-b427-1461667e96bd

push

circleci

Haixing-Hu
build: rebuild with new version of @haixing_hu/rollup-builder

89 of 106 branches covered (83.96%)

Branch coverage included in aggregate %.

165 of 189 relevant lines covered (87.3%)

59.55 hits per line

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

0.0
/src/impl/fix-first-argument.js
1
////////////////////////////////////////////////////////////////////////////////
2
//
3
//    Copyright (c) 2022 - 2024.
4
//    Haixing Hu, Qubit Co. Ltd.
5
//
6
//    All rights reserved.
7
//
8
////////////////////////////////////////////////////////////////////////////////
9
import isString from './is-string';
10

11
function fixFirstArgument(prefix, args) {
12
  if (args.length === 0) {
×
13
    return [prefix];
×
14
  } else if (isString(args[0])) {
×
15
    args[0] = prefix + args[0];
×
16
    return args;
×
17
  } else {
18
    return [prefix, ...args];
×
19
  }
20
}
21

22
export default fixFirstArgument;
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

© 2025 Coveralls, Inc