formula: add indexOf (#431)
This commit is contained in:
parent
ed8f14d573
commit
bb532a62cd
3 changed files with 4 additions and 0 deletions
|
|
@ -77,6 +77,7 @@ module.exports = {
|
|||
})
|
||||
math.import({
|
||||
unpack: function(a) { return Array.isArray(a) ? a.toString() : a },
|
||||
indexOf: function(a, x) { return a.indexOf(x) },
|
||||
pad: function(x, padding) {
|
||||
var str = String(x),
|
||||
[int, dec] = str.split('.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue