Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: toChars/ chars #92

Open
vorillaz opened this issue Oct 28, 2019 · 1 comment
Open

Feature: toChars/ chars #92

vorillaz opened this issue Oct 28, 2019 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@vorillaz
Copy link
Contributor

vorillaz commented Oct 28, 2019

Splits input text into an array of characters.

  toChars(); // => []
  toChars(''); // => []
  toChars(null); // => []
  toChars('Hello world'); // => [ "H", "e", "l", "l", "o", " ", "w", "o", "r", "l", "d" ]
  toChars(1) // => ['1']
  toChars(2e5) // =>  ["2", "0", "0", "0", "0", "0"]

Aliases

import toChars from '@plexis/to-chars';
import {toChars, chars} from 'plexis';
@vorillaz vorillaz added enhancement New feature or request good first issue Good for newcomers labels Oct 28, 2019
@francismarcus
Copy link

I'll pr later today :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants