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
160
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

is_even, is_odd

More

Packages that depend on is_odd_or_even