Minimalist and elegant API that returns true if the given number is odd.
More...
true
import 'package:is_odd/is_odd.dart'; isOdd(0); //=> false isOdd(1); //=> true isOdd(2); //=> false isOdd(3); //=> true
Implementation shamelessly stolen from the JavaScript package is-odd
unverified uploader
Repository (GitHub)
API reference
MIT (license)
Packages that depend on is_odd
Back