UNPKG
apl-easy-gl
Version:
latest (0.4.0)
0.4.0
0.3.1
0.3.0
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
Various easy WebGL helper functions
github.com/andrewlowndes/easy-gl
andrewlowndes/easy-gl
apl-easy-gl
/
lib
/
Util
/
isPowerOf2.js
8 lines
(7 loc)
•
189 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
function
isPowerOf2
(
value
) {
return
(value & (value -
1
)) ==
0
; }
exports
.
isPowerOf2
= isPowerOf2; ;