import isPlainObject from 'lodash.isplainobject';

export default function noVelocity(coll) {
  if (Array.isArray(coll)) {
    return coll.every(noVelocity);
  }
  if (isPlainObject(coll)) {
    return Object.keys(coll).every(
      key => key === 'config' ? true : noVelocity(coll[key])
    );
  }
  return typeof coll === 'number' ? coll === 0 : true;
}

@@ -1,54 +1,154 @@
-import isPlainObject from 'lodash.isplainobject';%0A
+// currentStyle keeps the info about whether a prop is configured as a spring%0A// or if it's just a random prop that happens to be present on the style
 %0Aexp
@@ -184,68 +184,65 @@
 ty(c
-oll) %7B%0A  if (Array.isArray(coll)
+urrentVelocity, currentStyle
 ) %7B%0A  
- 
- return coll.every(no
+for (let key in current
 Velo
@@ -250,199 +250,185 @@
 ity)
-;
+ %7B
 %0A  
-%7D%0A
   if (
-isPlainObject(coll)) %7B%0A    return Object.keys(coll).every(%0A      key =%3E key === 'config' ? true : noVelocity(coll%5Bkey%5D)%0A    );%0A  %7D%0A  return typeof coll === 'number' ? coll === 0 :
+!currentVelocity.hasOwnProperty(key)) %7B%0A      continue;%0A    %7D%0A    if (currentStyle%5Bkey%5D.config && currentVelocity%5Bkey%5D !== 0) %7B%0A      return false;%0A    %7D%0A  %7D%0A  return
  tru

Simplify noVelocity code