{"size": 360, "ext": "js", "max_stars_repo_path": "Promise/02-currying/06-utilCurrying.js", "max_stars_repo_name": "zangguojun/Node-Learning", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Promise/02-currying/06-utilCurrying.js", "max_issues_repo_name": "zangguojun/Node-Learning", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Promise/02-currying/06-utilCurrying.js", "max_forks_repo_name": "zangguojun/Node-Learning", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.0, "max_line_length": 53, "alphanum_fraction": 0.6194444444}
const {currying} = require('./03-currying');
const {isType} = require('./01-isType');

let types = ['String', 'Number', 'Undefined', 'Null']
let util = []
types.forEach(typing => {
  util[`is${typing}`] = currying(isType)(typing)
})

if (require.main === module) {
  r = util.isString('hello')
  console.log(r);
  r = util.isNumber('hello')
  console.log(r);
}