mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
14 lines
433 B
JavaScript
14 lines
433 B
JavaScript
'use strict';
|
|
|
|
// TODO: function eye is removed since v5.0.0 (June 2018). Remove it some day.
|
|
|
|
function factory (type, config, load, typed) {
|
|
return function eye() {
|
|
throw new Error('Function "eye" is renamed to "identity" since mathjs version 5.0.0. ' +
|
|
'To keep eye working, create an alias for it using "math.import({eye: math.identity}, {override: true})"')
|
|
};
|
|
}
|
|
|
|
exports.name = 'eye';
|
|
exports.factory = factory;
|