MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / trimStart

Function trimStart

helpers/socketQuery.js:11–19  ·  view source on GitHub ↗
(character, string)

Source from the content-addressed store, hash-verified

9const config = require('../config/config');
10
11function trimStart(character, string) {
12 let startIndex = 0;
13
14 while (string[startIndex] === character) {
15 startIndex++;
16 }
17
18 return string.substr(startIndex);
19}
20
21const obj = {
22

Callers 1

validateSocketQueryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected