code: 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/')
  }
docs: Check node.