import ENTITIES from "../constants/entities" ; const ENTITY_TYPES = Object . values ( ENTITIES ) ; param { Token } return { boolean } function isEntity ( token ) { return ENTITY_TYPES . indexOf ( token . getType ( ) ) >= 0 ; } export default isEntity ;