Attach library or js file to specific node

Hello,

I want to attach a node or just a js fiel to a specific node
Actualy i did this :

function formation_preprocess_node(&$variables) {
  $variables['#attached']['library'][] = 'formation/node-css';
}

But i want to add a condition like: ” if the node id equals 150 …”

Regards,
Nemtecl

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/2/feed