mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
5 lines
170 B
TypeScript
5 lines
170 B
TypeScript
import { Features } from '@roleypoly/types';
|
|
|
|
export const hasFeature = (feature: Features, features: number): boolean => {
|
|
return (features & feature) === feature;
|
|
};
|