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

Add ssv.state method #40

Merged
merged 1 commit into from
Mar 27, 2020
Merged

Add ssv.state method #40

merged 1 commit into from
Mar 27, 2020

Conversation

ryanve
Copy link
Owner

@ryanve ryanve commented Mar 27, 2020

Add state method useful for conditional classnames from an object or string

ssv.state({
  "mark travis": true,
  "matt": true,
  "tom scott": false
}) === "mark travis matt"
ssv.state("mark travis matt") === "mark travis matt"
ssv.state(" travis  travis ") === "travis travis"

@ryanve ryanve merged commit 37349f6 into master Mar 27, 2020
@ryanve ryanve deleted the state branch March 27, 2020 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant