arnemolland / is_odd

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

Home Page:https://pub.dev/packages/is_odd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://pub.dev/packages/is_odd

License:MIT License


Languages

Language:Dart 100.0%