feat(common): helper method, fix filter() iterator
style($state): whitespace, etc.