mathiasbynens / mathiasbynens/jsesc
Empty arrays / objects
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 800
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Description
With `compact: false`, they should probably stringify to `[]` & `{}` rather than…
``` js
[
]
{
}
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the code path that handles the `compact` option and the existing tests for stringifying empty arrays and objects. Verify the current multiline output, then confirm that `compact: false` produces `[]` and `{}` and add coverage for both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100