load array with property values
770893
private void addLoadPropertyValues(Node node, Node child, int count) {
        if (isGenerator) {
            // see bug 757410 for an explanation why we need to split this
            for (int i = 0; i != count; ++i) {
                int childType = child.getType();
                if (childType == Token.GET || childType == Token.SET || childType == Token.METHOD) {
                    generateExpression(child.getFirstChild(), node);
                } else {
                    generateExpression(child, node);
                }
                child = child.getNext();
            }
            addNewObjectArray(count);
            for (int i = 0; i != count; ++i) {
                cfw.add(ByteCode.DUP_X1);
                cfw.add(ByteCode.SWAP);
                cfw.addPush(count - i - 1);
                cfw.add(ByteCode.SWAP);
                cfw.add(ByteCode.AASTORE);
            }
        } else {
            addNewObjectArray(count);
            Node child2 = child;
            for (int i = 0; i != count; ++i) {
                cfw.add(ByteCode.DUP);
                cfw.addPush(i);
                int childType = child2.getType();
                if (childType == Token.GET || childType == Token.SET || childType == Token.METHOD) {
                    generateExpression(child2.getFirstChild(), node);
                } else {
                    generateExpression(child2, node);
                }
                cfw.add(ByteCode.AASTORE);
                child2 = child2.getNext();
            }
        }
    }
116155
function indexBy(array, propName) {
  var result = {};
  forEach(array, function(item) {
    result[item[propName]] = item;
  });
  return result;
}
492221
function (value, array) {
            if (util.isFn(array.indexOf)) {
                return array.indexOf(value);
            } else {
                return $.inArray(value, array);
            }
        }
486636
def load(self, items):
        

        for k, vals in items:
            self[k] = "".join(vals)
701600
function __getArray(source, propName) {
  var arr = source[propName];
  if (!arr) {
    arr = [];
    source[propName] = arr;
  }
  return arr;
}
289111
function procesArray(array) {
  if (!array || !Array.isArray(array)) {
    return array;
  }
  return array.map((item, index) => {
    if (typeof item === "string") {
      return localizeString(item);
    }
    return item;
  });
}
298239
def ListOf(cls, **kwargs):
    """"""

    def _list_load(value):
        return [cls.load(d) for d in value]

    return Property(types=list, load=_list_load, default=list, **kwargs)
1328299
function convertArrayToObject(array) {
      var temp = [];
      array.forEach(function (text) {
        temp.push({
          index: text
        });
      });
      return temp;
    }
1346542
def from_array(cls, arr):
        """"""
        return cls().with_columns([(f, arr[f]) for f in arr.dtype.names])
1121465
private function loadUnsettableProperties()
    {
        $this->unsetableProperties = array();
        foreach( $this->dataTypes as $name => $dataType ) {
            if( $dataType->isUnsettable() ) {
                $this->unsetableProperties[] = $name;
            }
        }
    }
405395
function extract($property_name)
	{
		$result = [];
		foreach($this->_value as $x)
			$result[] = $x->get($property_name);

		return self::factory($result);
	}
720258
protected List<ValueData> loadPropertyValues(NodeData parentNode, ItemData property , InternalQName propertyName)
      throws RepositoryException
   {
      if(property == null)
      {
          property = dataManager.getItemData(parentNode, new QPathEntry(propertyName, 1), ItemType.PROPERTY);
      }
      if (property != null)
      {
         if (property.isNode())
            throw new RepositoryException("Fail to load property " + propertyName + "not found for "
               + parentNode.getQPath().getAsString());
         return ((PropertyData)property).getValues();
      }
      return null;
   }
388151
private Object convertArrayToArray(Object array) {
		final Class<?> valueComponentType = ArrayUtil.getComponentType(array);

		if (valueComponentType == targetComponentType) {
			return array;
		}

		final int len = ArrayUtil.length(array);
		final Object result = Array.newInstance(targetComponentType, len);

		final ConverterRegistry converter = ConverterRegistry.getInstance();
		for (int i = 0; i < len; i++) {
			Array.set(result, i, converter.convert(targetComponentType, Array.get(array, i)));
		}
		return result;
	}
765536
function GetValues(mydata, keys, index)
{
	//Output
	var values = [];
	
	//Loop
	for(var j = 0; j < keys.length; j++)
	{
		//Save data value
		var value = mydata[keys[j]];
		
		//Check if value exists
		if(!value)
		{
			//Show warning
			console.log('WARNING: value "' + keys[j] + '" is not defined on element "' + index + '" of your array.');
			
			//Set it to empty string
			value = '';
		}
		
		//Check the data type
		if(typeof value === 'string' || value instanceof String)
		{
			//Add the quotes
			value = '"' + value + '"';
		}
		
		//Push
		values.push(value);
	}
	
	//Return
	return values.join(',');
}
13160
function(name, property, value, types) {
  if (!(types instanceof Array)) {
    types = [types];
  }
  if (types.indexOf(typeof value) === -1) {
    debug('%s \'%s\' expected %j got: %j', name, property, types, value);
    throw new Error(name + ' \'' + property + '\' expected one of type(s): \'' +
                    types.join(',') + '\' got type: \'' + typeof value + '\'');
  }
}
643198
def load(self, value):
        """"""

        if not isinstance(value, str):
            raise TypeError('Expected JSON string')

        _value = json.loads(value)
        self._validate_word(value=_value)
        self.word = _value
346074
public static void loadCustomerProperties(Properties props){
        for(Entry<Object, Object> entry : props.entrySet()){
            setProperty((String)entry.getKey(), entry.getValue());
        }
    }