import config from '@config/config' ; type objectWithNameProperty = { name : string ; [ key ] : any ; } ; const exclusionPrefix = ( exclusionPrefixStrings ) : string [ ] => { return [ ... config . exclusionPrefixDefault , ... exclusionPrefixStrings ] ; } ; const filterByPropertyName = ( object , exclusionPrefixStrings ) => ! exclusionPrefix ( exclusionPrefixStrings ) . includes ( object . name . trim ( ) . substr ( 0 , 1 ) ) ; export default filterByPropertyName ;