Skip to main content

electricalComponents

active​

Description​

Method that generate random electrical active components

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.electricalComponents.active());
    1. result
    'JFET'

passive​

Description​

Method that generate random electrical passive components

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.electricalComponents.passive());
    1. result
    'Accelerometer'

electromechanical​

Description​

Method that generate random electrical electromechanical components

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.electricalComponents.electromechanical());
    1. result
    'Fuse'