UNPKG

node-nlp

Version:

Library for NLU (Natural Language Understanding) done in Node.js

11 lines (10 loc) 203 B
// Pick the first defined of two or three arguments. export default function defaults(a, b, c) { if (a != null) { return a; } if (b != null) { return b; } return c; }