@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

Readme

Keywords

none

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