@angular/cdk
Version:
Angular Material Component Development Kit
20 lines • 648 B
JavaScript
;
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
/** Finds all start indices of the given search string in the input string. */
function findAllSubstringIndices(input, search) {
const result = [];
let i = -1;
while ((i = input.indexOf(search, i + 1)) !== -1) {
result.push(i);
}
return result;
}
exports.findAllSubstringIndices = findAllSubstringIndices;
//# sourceMappingURL=literal.js.map