Javascript - 6 bytes
Usage of the arrow function declaration (as an anonymous function here) and a bitwise "AND" operator
x=>x&x
or alternatively using the bitwise "OR" operator:
x=>x|0
Usage of the arrow function declaration (as an anonymous function here) and a bitwise "AND" operator
x=>x&x
or alternatively using the bitwise "OR" operator:
x=>x|0