Skip to content

Instantly share code, notes, and snippets.

@arecvlohe
Last active May 9, 2016 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arecvlohe/912bcbf945f00561f15f689eb390ff59 to your computer and use it in GitHub Desktop.
Save arecvlohe/912bcbf945f00561f15f689eb390ff59 to your computer and use it in GitHub Desktop.
'use strict'
function stringCount(object) {
let count = 0
Object.keys(object).forEach(key => {
if (typeof object[key] === 'string')
count++
})
return count
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment