Skip to content

Commit

Permalink
Merge branch 'main' into top-level-let-naming-conflict-should-jsstar-…
Browse files Browse the repository at this point in the history
…expr-default
  • Loading branch information
borkdude committed Oct 30, 2023
2 parents 3610a09 + e8f721c commit 13b6b14
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ Squint is not intended as a replacement for ClojureScript but as a tool to
target JS for anything you would not use ClojureScript for, for whatever reason:
performance, bundle size, ease of interop, etc.

> :warning: This project should be considered experimental and may still undergo
> breaking changes. It's fine to use it for non-critical projects but don't use
> it in production yet.
> :warning: This project is a work in progress and may still undergo breaking
> changes.
## Quickstart

Expand Down Expand Up @@ -295,6 +294,11 @@ to make it all work.
</html>
```

## Projects using squint

- [static search index for Tumblr](https://github.com/holyjak/clj-tumblr-summarizer/commit/a8b2ca8a9f777e4a9059fa0f1381ded24e5f1a0f)
- [worlde](https://github.com/jackdbd/squint-wordle)

License
=======

Expand Down
1 change: 1 addition & 0 deletions resources/squint/core.edn
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
max
merge
min
NaN_QMARK_
neg_QMARK_
next
nil_QMARK_
Expand Down
4 changes: 4 additions & 0 deletions src/squint/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,10 @@ export function* re_seq(re, s) {
}
}

export function NaN_QMARK_(x) {
return Number.isNaN(x);
}

export function number_QMARK_(x) {
return typeof x == 'number';
}
Expand Down

0 comments on commit 13b6b14

Please sign in to comment.