slmjkdbtl / is-is-odd Goto Github PK
View Code? Open in Web Editor NEW:shrimp: check if the given function is is-odd
License: zlib License
:shrimp: check if the given function is is-odd
License: zlib License
To help users to use this repo, we must create a wiki on https://github.com/slmjkdbtl/is-is-odd/wiki
My project directly depends on an older version of is-odd
for legacy reasons but even the earliest release of is-is-odd
seems to only check against the latest version that matches its own dependency (at time of install?) resulting in a false negative.
Minimal reproducible example:
mkdir is-is-odd-example
cd is-is-odd-example
npm install is-odd@2 is-is-odd
node -e "console.log(require('is-is-odd')(require('is-odd')))"
# outputs false
We seem to have reached a working version of this project that a lot of customers can enjoy on a daily basis without any major problems or performance issues, that's why I propose to rewrite this project in Rust.
Please let me support my proposal with the following arguments:
Let me know your opinions :)
The code currently uses the abstract equality operator ==
, meaning that a stringified version of the isOdd function will incorrectly return true.
Example:
const isOdd = require('is-odd');
const isIsOdd = require('is-is-odd');
console.log(isIsOdd(isOdd.toString())); // -> true
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.