@samitouri / QOS-React-2 / commits / 48333acba6
Fork 0

The library for web and native user interfaces.

Remove reactKeys

It wasn't being used and it wasn't conforming to the @providesModule === file name rule.

CommitSyncScript committed Jun 17, 2013 at 16:25 UTC 48333acba657ac98b5760f89c22e48a8b4be27ac
1 file changed -34
src/utils/keys.js deleted
-34
@@ -1,34 +0,0 @@
1 -/**
2 - * Copyright 2013 Facebook, Inc.
3 - *
4 - * Licensed under the Apache License, Version 2.0 (the "License");
5 - * you may not use this file except in compliance with the License.
6 - * You may obtain a copy of the License at
7 - *
8 - * http://www.apache.org/licenses/LICENSE-2.0
9 - *
10 - * Unless required by applicable law or agreed to in writing, software
11 - * distributed under the License is distributed on an "AS IS" BASIS,
12 - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 - * See the License for the specific language governing permissions and
14 - * limitations under the License.
15 - *
16 - * @providesModule reactKeys
17 - */
18 -
19 -"use strict";
20 -
21 -/**
22 - * Similar to Object.keys() but does not fail on empty parameter.
23 - */
24 -var keys = function(obj) {
25 - var ret = [], aKey;
26 - for (aKey in obj) {
27 - if (obj.hasOwnProperty(aKey)) {
28 - ret.push(aKey);
29 - }
30 - }
31 - return ret;
32 -};
33 -
34 -module.exports = keys;