Skip to content

Commit

Permalink
docs: add documentation on 'keep'
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb committed Jan 4, 2022
1 parent e8309d0 commit ba863db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ In the example below we see:

```js
pascalCase('$cat-dog', { keepSpecialCharacters: false })
// CatDog → not what we want
// CatDog → not what we want

pascalCase('$cat-dog', { keepSpecialCharacters: true }) // $Cat-Dog
pascalCase('$cat-dog', { keepSpecialCharacters: true })
// $Cat-Dog → not what we want

pascalCase('$cat-dog', { keep: ['$'] })
// $CatDog → desired output
// $CatDog → desired output
```

### Convert special characters into alphabet
Expand Down

0 comments on commit ba863db

Please sign in to comment.