benrr101 / node-taglib-sharp

A node.js port of mono/taglib-sharp
GNU Lesser General Public License v2.1
42 stars 11 forks source link

NumberUtils.hasFlag #51

Closed benrr101 closed 2 years ago

benrr101 commented 2 years ago

Description: Adding a new utility method to determine whether a number has a flag. This makes it a bit clearer what some bitwise logic is doing (and avoid making mistakes because of JavaScript's obnoxious treatment of number as signed in most cases).

Testing: Unit and integration tests are still passing