'use strict'; var regression = require('regression'); if (typeof regression.linear === 'function') { console.log('ok'); }