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