function javascript(node) {
  if (!is(node, 'script')) {
    return false
  }

  if (has(node, 'type')) {
    return check(node.properties.type)
  }

  return !has(node, 'language') || check(node.properties.language, 'text/')
}
function javascript(node) {
  if (!is(node, 'script')) {
    return false
  }

  if (has(node, 'type')) {
    return check(node.properties.type)
  }

  return !has(node, 'language') || check(node.properties.language, 'text/')
}
function javascript ( node ) { if ( ! is ( node , 'script' ) ) { return false } if ( has ( node , 'type' ) ) { return check ( node . properties . type ) } return ! has ( node , 'language' ) || check ( node . properties . language , 'text/' ) }
Check node.
Check node .