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

A starting point for Dart libraries or applications.

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

Disclaimer #

Implementation shamelessly stolen from the JavaScript package is-odd

5
likes
160
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on is_odd