{"size": 1016, "ext": "js", "max_stars_repo_path": "src/utils.js", "max_stars_repo_name": "librpc/w", "max_stars_repo_stars_event_min_datetime": "2018-02-12T11:18:06.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-22T04:14:08.000Z", "max_issues_repo_path": "src/utils.js", "max_issues_repo_name": "librpc/w", "max_issues_repo_issues_event_min_datetime": "2018-01-03T10:20:47.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-07T11:10:47.000Z", "max_forks_repo_path": "src/utils.js", "max_forks_repo_name": "librpc/wrpc", "max_forks_repo_forks_event_min_datetime": "2019-05-19T16:32:28.000Z", "max_forks_repo_forks_event_max_datetime": "2019-05-19T16:32:28.000Z"}
{"max_stars_count": 5, "max_issues_count": 22, "max_forks_count": 1, "avg_line_length": 24.1904761905, "max_line_length": 68, "alphanum_fraction": 0.6200787402}
/**
 * Ensure that passed value is object
 * @param  {*}       object Value to check
 * @return {boolean}        Check result
 */
export function isObject (object) {
  return Object(object) === object
}

/**
 * Ensure that passed value could be transfer
 * @param  {*}       object Value to check
 * @return {boolean}        Check result
 */
export function isTransferable (object) {
  return object instanceof ArrayBuffer
}

/**
 * Recursively peek transferables from passed data
 * @param  {*}             data        Data source
 * @param  {Array}         [result=[]] Dist array
 * @return {ArrayBuffer[]}             List of transferables objects
 */
export function peekTransferables (data, result = []) {
  if (isTransferable(data)) {
    result.push(data)
  } else if (isObject(data)) {
    for (var i in data) {
      peekTransferables(data[i], result)
    }
  }
  return result
}

/**
 * @return {string} Uniq uid
 */
export function uuid () {
  return Math.floor((1 + Math.random()) * 1e10).toString(16)
}
