Last updated:
0 purchases
is odd or even
is_odd_or_even #
Minimalist and elegant API that returns true if the given number is odd or even.
Usage #
import 'package:is_odd_or_even/is_odd_or_even.dart';
isOddOrEven(0);
//=> true
isOddOrEven(1);
//=> true
isOddOrEven(2);
//=> true
isOddOrEven(3);
//=> true
copied to clipboard
Disclaimer #
Implementation shamelessly stolen from the JavaScript package is-odd-or-even
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.