MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / splice

Function splice

packages/core/ui/editable-text-base/index.ios.ts:286–288  ·  view source on GitHub ↗
(value: string, start: number, delCount: number, newSubStr: string)

Source from the content-addressed store, hash-verified

284 * @return {string} A new string with the spliced substring.function splice(value: string, start: number, delCount: number, newSubStr: string) {
285 */
286function splice(value: string, start: number, delCount: number, newSubStr: string) {
287 return value.slice(0, start) + newSubStr + value.slice(start + Math.abs(delCount));
288}

Calls 1

sliceMethod · 0.45

Tested by

no test coverage detected