is_odd_or_even 1.0.0 copy "is_odd_or_even: ^1.0.0" to clipboard
is_odd_or_even: ^1.0.0 copied to clipboard

Minimalist and elegant API that returns true if the given number 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

Disclaimer #

Implementation shamelessly stolen from the JavaScript package is-odd-or-even

1
likes
140
pub points
0%
popularity

Publisher

unverified uploader

Minimalist and elegant API that returns true if the given number is odd or even.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

is_even, is_odd

More

Packages that depend on is_odd_or_even