function checkDeprecatedProps(layerName, propsInstance, deprecatedProps) {
  if (!propsInstance) {
    return;
  }

  for (const name in deprecatedProps) {
    if (hasOwnProperty(propsInstance, name)) {
      const nameStr = `${layerName || 'Layer'}: ${name}`;

      for (const newPropName of deprecatedProps[name]) {
        if (!hasOwnProperty(propsInstance, newPropName)) {
          propsInstance[newPropName] = propsInstance[name];
        }
      }

      log.deprecated(nameStr, deprecatedProps[name].join('/'))();
    }
  }
}
function checkDeprecatedProps(layerName, propsInstance, deprecatedProps) {
  if (!propsInstance) {
    return;
  }

  for (const name in deprecatedProps) {
    if (hasOwnProperty(propsInstance, name)) {
      const nameStr = `${layerName || 'Layer'}: ${name}`;

      for (const newPropName of deprecatedProps[name]) {
        if (!hasOwnProperty(propsInstance, newPropName)) {
          propsInstance[newPropName] = propsInstance[name];
        }
      }

      log.deprecated(nameStr, deprecatedProps[name].join('/'))();
    }
  }
}
function checkDeprecatedProps ( layerName , propsInstance , deprecatedProps ) { if ( ! propsInstance ) { return ; } for ( const name in deprecatedProps ) { if ( hasOwnProperty ( propsInstance , name ) ) { const nameStr = ` ${ layerName || 'Layer' } ${ name } ` ; for ( const newPropName of deprecatedProps [ name ] ) { if ( ! hasOwnProperty ( propsInstance , newPropName ) ) { propsInstance [ newPropName ] = propsInstance [ name ] ; } } log . deprecated ( nameStr , deprecatedProps [ name ] . join ( '/' ) ) ( ) ; } } }
/* eslint-disable max-depth
/ * eslint - disable max - depth
Check deprecated properties