fluid.arrayToHash(array)

Converts an array of strings into a map where the keys are the strings and the value is true.

fluid.arrayToHash(array);

File name: fluidRenderer.js

Parameters

array

(Array) Array of strings to convert into a hash map

Return Value

Value

description

See Also


Example

var elementList = ["div", "tr", "li"];
var map = fluid.arrayToHash(elementList);

In this example, map will result as:

{
      div: true,
      tr: true,
      li: true
}