MCPcopy Create free account
hub / github.com/editablejs/editable / addString

Function addString

apps/docs/src/utils/to-comma-separated-list.tsx:3–4  ·  view source on GitHub ↗
(list: React.ReactNode[], string: string)

Source from the content-addressed store, hash-verified

1import * as React from 'react'
2
3const addString = (list: React.ReactNode[], string: string) =>
4 list.push(<span key={`${list.length}-${string}`}>{string}</span>)
5
6function toCommaSeparatedList<Item>(
7 array: Item[],

Callers 1

toCommaSeparatedListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…