Skip to content

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

License

Notifications You must be signed in to change notification settings

arnemolland/is_odd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages