UNPKG
miaam
Version:
latest (2.1.1)
2.1.1
2.1.0
2.0.5
2.0.4
2.0.3
Miaam Web Game Framework
miaam
/
src
/
util
/
layer.js
13 lines
(10 loc)
•
257 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
constructPropertiesMap
= (
properties
) => {
const
propertiesMap = {};
if
(properties !==
undefined
) { properties.
forEach
(
(
{ name, value }
) =>
{ propertiesMap[name] = value; }); }
return
propertiesMap; };
export
{ constructPropertiesMap };