browser versions

This commit is contained in:
Mahdi Dibaiee
2015-04-20 15:15:56 +04:30
parent 9925a1023b
commit 9ce6890f21
6 changed files with 782 additions and 9 deletions

View File

@ -2,7 +2,6 @@ import ReadStream from './readstream';
import operators from './operators';
import constants from './constats';
import * as _ from './helpers';
import polyfills from 'babel/polyfill';
let Equation = {
/**
@ -151,7 +150,7 @@ const parseGroups = stack => {
// Parantheses become inner arrays which will then be processed first
let sub = 0;
return stack.reduce((a, b) => {
if (b.includes('(')) {
if (b.indexOf('(') > -1) {
if (b.length > 1) {
_.dive(a, sub).push(b.replace('(', ''), []);
} else {