()
| 1265 | * @see {@link splitKeyValue} when values are key-value pairs |
| 1266 | * |
| 1267 | * @category splitting |
| 1268 | * @since 4.0.0 |
| 1269 | */ |
| 1270 | export function split<E extends string>(options?: { |
| 1271 | readonly separator?: string | undefined |
| 1272 | }): Getter<ReadonlyArray<string>, E> { |
| 1273 | const separator = options?.separator ?? "," |
| 1274 | return transform((input) => input === "" ? [] : input.split(separator)) |
| 1275 | } |
| 1276 | |
| 1277 | /** |
nothing calls this directly
no test coverage detected
searching dependent graphs…