新增于: v16.0.0
如果进程是主进程,则为真。这是由 process.env.NODE_UNIQUE_ID
决定的。如果 process.env.NODE_UNIQUE_ID
未定义,则 isPrimary
为 true
。
¥True if the process is a primary. This is determined
by the process.env.NODE_UNIQUE_ID
. If process.env.NODE_UNIQUE_ID
is
undefined, then isPrimary
is true
.