Last updated:
0 purchases
is odd new
is_odd_new #
Minimalist and elegant API that returns true if the given number or string is odd.
Usage #
import 'package:is_odd_new/is_odd_new.dart';
//int
isOdd(0);
//=> false
isOdd(1);
//=> true
isOdd(2);
//=> false
isOdd(3);
//=> true
//double
isOdd(0.0);
//=> false
isOdd(1.0);
//=> true
isOdd(2.0);
//=> false
isOdd(3.0);
//=> true
//String
isOdd("0");
//=> false
isOdd("1");
//=> true
isOdd("2");
//=> false
isOdd("3");
//=> true
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.