JSPM

@dcos/copychars

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 85
  • Score
    100M100P100Q94610F
  • License Apache-2.0

Package Exports

  • @dcos/copychars

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dcos/copychars) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Copy Characters Build Status


👩‍🔬 Please be aware that this package is still experimental — changes to the interface and underlying implementation are likely, and future development or maintenance is not guaranteed.


This package provides a function to copy characters from a string.

Example

import copychars from "@dcos/copychars";

copychars("abc-123", 4, 3);  //123

TODO

  • Document how this function differs from subsrt and slice and why one would want to use instead of the native implementations
  • Add a performance test to verify that the provided solution allows the browser to properly garbage collect strings