@erin-l-moore/is-thirteen-with-wasm
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

find out if it's 13...... with near-native performance

how to use this library

Give a value to the function, is_thirteen(var), and it will return a boolean that tells you if the value is 13.

run tests: cargo test

npm install: npm i @erin-l-moore/is-thirteen-with-wasm

sample import and usage:

const find_out = async possibly_thirteen => {
  var wasm = await import("@erin-l-moore/is-thirteen-with-wasm")
  return wasm.is_thirteen(possibly_thirteen)
}

find_out("13") -> returns true find_out("thirteen") -> returns true find_out("12") -> returns false

inspired by (and canonical list of thirteens borrowed under license from): is-thirteen

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.40latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.30
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i @erin-l-moore/is-thirteen-with-wasm

Weekly Downloads

0

Version

0.2.4

License

MIT

Unpacked Size

66.2 kB

Total Files

6

Last publish

Collaborators

  • erin-l-moore