squint
squint copied to clipboard
satisfies? works on number and string
Please answer the following questions and leave the below in as part of your PR.
- [x] This PR corresponds to an issue with a clear problem statement: #issue-number (mention the issue number in the previous link and remove this text)
- [x] This PR provides tests for code additions and changes
- [x] This PR does not contain bonus changes, i.e. changes not discussed in the linked issue. For those, please submit a new issue + PR.
After submitting this PR, please do not force-push your branch as this makes collaboration easier. Push as many new commits to your branch, they will be squashed upon merge.
in
doesn't work on numbers and string primitives, so just use property access. #128 related.
This still doesn't support nil
, which I will create another issue for.