import BLOCKS from "../constants/blocks" ; const BLOCK_TYPES = Object . values ( BLOCKS ) ; param { Token } return { boolean } function isBlock ( token ) { return BLOCK_TYPES . indexOf ( token . getType ( ) ) >= 0 ; } export default isBlock ;