nl_tokens: Checks whether a given component can be used to calculate domain
pl_tokens: function isDomainComponent ( component ) { const getRole = ( child ) => { return child && child . type ? child . type . role : "" ; } ; let role = getRole ( <mask> ) ; if ( role === "portal" ) { const children = React . Children . toArray ( component . props . children ) ; role = children . length ? getRole ( children [ 0 ] ) : "" ; } const whitelist = [ "area" , "axis" , "bar" , "boxplot" , "candlestick" , "errorbar" , "group" , "line" , "pie" , "scatter" , "stack" , "voronoi" ] ; return includes ( whitelist , role ) ; }