(value)
| 153005 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 153006 | // Licensed under the MIT license. |
| 153007 | function valueToBoolean(value) { |
| 153008 | if (typeof value === 'string') { |
| 153009 | switch (value.toLowerCase()) { |
| 153010 | case 'true': |
| 153011 | return true; |
| 153012 | |
| 153013 | case 'false': |
| 153014 | return false; |
| 153015 | } |
| 153016 | } |
| 153017 | |
| 153018 | return !!value; |
| 153019 | } |
| 153020 | |
| 153021 | function valueToString(value) { |
| 153022 | if (value == null) { |
no outgoing calls
no test coverage detected