Coffeekraken.io 0.0.1

s-parse-properties

Parse a given string/list properties and return the Map corresponding to the Map description

Name Type Description Status Default
$properties { List } The properties to parse required
$descriptor { Map } The descriptor map to use to parse the properties required

Return { Map } The properties in map format

Example

    s-parse-properties(10px hello -delay 20s, (
     myNumber : Number,
     myOtherNumber : Number,
     myString : String,
     myCoolVar : String,
     delay : second
));
// => (
//      myNumber : 10px,
//     myString : hello,
//     delay : 20s
// )

Author : Olivier Bossel olivier.bossel@gmail.com