Check If Object Key Contains String Javascript Functions Types